You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use the generated SDK, but in my custom resolver when I call the SDK it gives the following error before even making the request to the remote API.
GraphQLError [Object]: Unknown type "ID".
at Object.NamedType (<REDACTED>/node_modules/graphql/validation/rules/KnownTypeNamesRule.js:55:29)
at Object.enter (<REDACTED>/node_modules/graphql/language/visitor.js:323:29)
at Object.enter (<REDACTED>/node_modules/graphql/utilities/TypeInfo.js:370:25)
at visit (<REDACTED>/node_modules/graphql/language/visitor.js:243:26)
at Object.validate (<REDACTED>/node_modules/graphql/validation/validate.js:69:24)
at validateRequest (<REDACTED>/dist/delegate/src/delegateToSchema.js:129:20)
at delegateRequest (<REDACTED>/dist/delegate/src/delegateToSchema.js:96:9)
at Object.delegateToSchema (<REDACTED>/dist/delegate/src/delegateToSchema.js:22:12)
at <REDACTED>/dist/wrap/src/generateProxyingResolvers.js:80:47
at <REDACTED>/dist/wrap/src/generateProxyingResolvers.js:76:16 {
message: 'Unknown type "ID".',
locations: [],
path: [ 'suggestProperties' ]
}
This is happening with the OpenAPI handler. My .meshrc.yml:
If I remove the args.priceFinderToken and hardcode the token instead, it works fine. However, that is not feasible for me since I need to get a new token in runtime since they expire after 1 hour. I tried using {context.priceFinderToken} instead as well. but that didn't work with fastify-gql which is the GraphQL server I am using.
The text was updated successfully, but these errors were encountered:
Trying to use the generated SDK, but in my custom resolver when I call the SDK it gives the following error before even making the request to the remote API.
This is happening with the OpenAPI handler. My .meshrc.yml:
If I remove the
args.priceFinderToken
and hardcode the token instead, it works fine. However, that is not feasible for me since I need to get a new token in runtime since they expire after 1 hour. I tried using{context.priceFinderToken}
instead as well. but that didn't work with fastify-gql which is the GraphQL server I am using.The text was updated successfully, but these errors were encountered: