issues
search
prisma-labs
/
graphqlgen
⚙️ Generate type-safe resolvers based upon your GraphQL Schema
MIT License
818
stars
54
forks
source link
feat(gg): simplify and make safer resolver type resovler
#411
Closed
jasonkuhrt
closed
5 years ago
jasonkuhrt
commented
5 years ago
will close #409
Safer
strings constants are used to specifiy which graphql objects names may be returned.
null cannot be returned
undefined cannot be returned
Simpler
no nesting of type-generics
only permits returning names of graphql objects (not objects)
References:
https://github.com/graphql/graphql-js/blob/c1ca546704018e9630dd87db0dbb59d5ac3de501/src/execution/__tests__/abstract-test.js
https://github.com/graphql/graphql-js/blob/fd308ceb72a90a3903411a830da46adcd1156177/src/type/definition.js#L831-L836
will close #409
Safer
Simpler
References: