From 89f74785aafb4d75015b00286dce6b83eddaeb06 Mon Sep 17 00:00:00 2001 From: Johan Kim Date: Sun, 18 Jul 2021 10:45:43 +0900 Subject: [PATCH] Update Ordering section Make up to date Fix typo `dsc` to `desc` --- docs/content/030-plugins/050-prisma/030-api.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/030-plugins/050-prisma/030-api.mdx b/docs/content/030-plugins/050-prisma/030-api.mdx index 98172d40..afe1bc23 100644 --- a/docs/content/030-plugins/050-prisma/030-api.mdx +++ b/docs/content/030-plugins/050-prisma/030-api.mdx @@ -1586,7 +1586,7 @@ queryType({ type Query { user(where: UserWhereUniqueInput!): User - users(orderBy: UserOrderByInput): [User!]! + users(orderBy: [UserOrderByInput!]): [User!]! } type Post { @@ -1598,7 +1598,7 @@ type Post { type User { id: Int! name: String! - posts(orderBy: UserPostsOrderByInput): [Post!]! + posts(orderBy: [UserPostsOrderByInput!]): [Post!]! } input UserOrderByInput { @@ -1625,7 +1625,7 @@ enum OrderByArg { ```graphql query entrypointOrdering { - users(orderBy: { name: asc }) { + users(orderBy: [{ name: asc }]) { id name } @@ -1633,7 +1633,7 @@ query entrypointOrdering { query relationOrdering { user(where: { id: 1643 }) { - posts(orderBy: { title: dsc }) { + posts(orderBy: [{ title: desc }]) { title body }