Skip to content

Commit

Permalink
chore(docs): Update Ordering section (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiphapis committed Oct 27, 2021
1 parent 703d559 commit a7c26ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/content/030-plugins/050-prisma/030-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ queryType({

type Query {
user(where: UserWhereUniqueInput!): User
users(orderBy: UserOrderByInput): [User!]!
users(orderBy: [UserOrderByInput!]): [User!]!
}

type Post {
Expand All @@ -1598,7 +1598,7 @@ type Post {
type User {
id: Int!
name: String!
posts(orderBy: UserPostsOrderByInput): [Post!]!
posts(orderBy: [UserPostsOrderByInput!]): [Post!]!
}

input UserOrderByInput {
Expand All @@ -1625,15 +1625,15 @@ enum OrderByArg {

```graphql
query entrypointOrdering {
users(orderBy: { name: asc }) {
users(orderBy: [{ name: asc }]) {
id
name
}
}

query relationOrdering {
user(where: { id: 1643 }) {
posts(orderBy: { title: dsc }) {
posts(orderBy: [{ title: desc }]) {
title
body
}
Expand Down

0 comments on commit a7c26ba

Please # to comment.