From 6a829ee5627cc6ab9fd511c9e468706a337e8ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20de=20=C3=81vila=20Martins?= Date: Mon, 4 Jun 2018 01:43:26 -0300 Subject: [PATCH] Fix User redeclaration When the type is converted by prisma from the datamodel it becomes: type User implements Node { id: ID! email: String! password: String! name: String! posts(where: PostWhereInput, orderBy: PostOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Post!] role: Role! } When redeclaring User to remove the password field, the posts should lose that part from the datamodel. --- advanced/src/schema.graphql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/src/schema.graphql b/advanced/src/schema.graphql index 82cbeae6..f5094beb 100644 --- a/advanced/src/schema.graphql +++ b/advanced/src/schema.graphql @@ -24,5 +24,5 @@ type User { id: ID! email: String! name: String! - posts: [Post!]! + posts: [Post!] }