In the React boilerplate what does the commented o...
# orm-help
j
In the React boilerplate what does the commented out input in schema.graphql do? # import Post from “./generated/prisma.graphql” https://github.com/graphql-boilerplates/react-fullstack-graphql/blob/master/advanced/server/src/schema.graphql
w
j
So in that example could you import User in the same way and then remove how it’s currently declared? (line 27) type User { id: ID! email: String! name: String! posts: [Post!]! }
w
Absolutely
n
no, because the
User
model has a
password
field
redefining it like that ensures that
password
is not query-able