I've seen several sources describe the (root, args, context, info) arguments to a graphql-yoga
resolver, but I am still searching for the real documentation of a graphql-yoga
resolver. There are a few blog posts that mention the resolver arguments:
- prisma blog - Feb 2017 - GraphQL Schemas, TypeDefs & Resolvers Explained
- prisma blog - Feb 2018 - Demystifying the info Argument in GraphQL Resolvers
I know that prisma
has built graphql-yoga
on graphql.js
via graphql-tools
, and it appears that graphql.js
documents these parameters at graphql.org - Root fields & resolvers, but it's not clear if graphql.org
is the main place where graphql.js
is documented, and even if it was, it is not clear to me that as a user of graphql-yoga
I should defer to the documentation of graphql.js
.
In addition, prisma
has built graphql-yoga
on apollo-server
; is the documentation for apollo-server
most applicable here?
It doesn't appear that these arguments are part of the GraphQL spec.
Where is the real documentation for the arguments to a graphql-yoga
resolver? If that is not available and documented, where in the graphql-yoga
source is the function that expects the arguments to take this shape?