I'm not able to call link without getting the error "Cannot read property 'map' of undefined" in graphql-tools AddArgumentsAsVariables (in addVariablesToRootFields, which calls operation.variableDefinitions.map()).
I've tried it with graphql-tools 4.0.0 (from your lock file) and 4.0.4 (the latest in 4.0) and get the same error in both. Quite honestly I don't know nearly enough about GraphQL query evaluation to understand what's causing this.
I'm not able to call
link
without getting the error "Cannot read property 'map' of undefined" in graphql-tools AddArgumentsAsVariables (inaddVariablesToRootFields
, which callsoperation.variableDefinitions.map()
).The issue seems to originate from here -- https://github.com/AEB-labs/graphql-weaver/blob/master/src/pipeline/links.ts#L301 -- if I change
undefined
to[]
that solves the error.I've tried it with graphql-tools 4.0.0 (from your lock file) and 4.0.4 (the latest in 4.0) and get the same error in both. Quite honestly I don't know nearly enough about GraphQL query evaluation to understand what's causing this.
(
auth0
is usingmakeExecutableSchema({ typeDefs, resolvers });
-- is there something special I'd need to do since it's not a remote schema?)