When building a generic resolver (currently i'm trying to build one to map graphql to sequelize) it would be nice to be able to access information about the type of the current field.
Knowing whether or not something is a GraphQLList of a GraphQLObjectType or simply just a GraphQLObjectType will help the resolver in knowing whether to fetch an array of objects or a single object.
source and root (the first and third argument) seem to be empty, and ast (4th arg) only contains a Kind (which is 'Field') and the name value for that field.
When building a generic resolver (currently i'm trying to build one to map graphql to sequelize) it would be nice to be able to access information about the type of the current field.
Knowing whether or not something is a
GraphQLList
of aGraphQLObjectType
or simply just aGraphQLObjectType
will help the resolver in knowing whether to fetch an array of objects or a single object.source
androot
(the first and third argument) seem to be empty, andast
(4th arg) only contains a Kind (which is 'Field') and the name value for that field.