mercurius-js / mercurius

Implement GraphQL servers and gateways with Fastify
https://mercurius.dev/
MIT License
2.33k stars 234 forks source link

Unreasonably long introspection or depth limit error #961

Closed Creative-Difficulty closed 1 year ago

Creative-Difficulty commented 1 year ago

I have set up a GraphQL API using mercurius and fastify. Since my app shouldn't support nested Queries, i have implemented a queryDepth limiter and NoSchemaIntrospectionCustomRule (unrelated) like this:

app.register(mercurius, {
    schema,
    resolvers,
    validationRules: [NoSchemaIntrospectionCustomRule],
    queryDepth: 1
});

The Problem: As soon as i send a test request with a too deep query e.g.:

query { aaa {
    aaabb
} }

mercurius throws this unreasonably long error:

{"level":30,"time":1676141156260,"pid":87889,"hostname":"Alexanders-MacBook-Air-2.local","reqId":"req-1","res":{"statusCode":400},"err":{"type":"FastifyError","message":"Graphql validation error","stack":"FastifyError: Graphql validation error\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:477:21)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)\n    at handler (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:76:7)\n    at /Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/contentTypeParser.js:191:9\n    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)\n    at done (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/contentTypeParser.js:185:14)\n    at Parser.defaultJsonParser [as fn] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/contentTypeParser.js:291:5)","aggregateErrors":[{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"__schema\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"__schema\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":3,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"queryType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"queryType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":4,"column":9}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"mutationType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"mutationType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":5,"column":9}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"subscriptionType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"subscriptionType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":6,"column":9}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"types\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"types\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":7,"column":9}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"directives\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"directives\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":10,"column":9}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"locations\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"locations\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":13,"column":11}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"args\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"args\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":14,"column":11}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"kind\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":22,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"fields\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"fields\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":25,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"args\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"args\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":28,"column":9}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"type\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"type\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":31,"column":9}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"inputFields\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"inputFields\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":37,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"interfaces\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"interfaces\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":40,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"enumValues\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"enumValues\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":43,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"possibleTypes\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"possibleTypes\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":49,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"type\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"type\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":57,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"kind\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":62,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":64,"column":7}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"kind\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":65,"column":9}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":67,"column":9}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"kind\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":68,"column":11}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":70,"column":11}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"kind\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":71,"column":13}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":73,"column":13}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"kind\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":74,"column":15}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":76,"column":15}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"kind\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":77,"column":17}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":79,"column":17}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"kind\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":80,"column":19}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":82,"column":19}],"extensions":{}},{"type":"GraphQLError","message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","stack":"GraphQLError: GraphQL introspection has been disabled, but the requested query contained the field \"kind\".\n    at Object.Field (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js:31:11)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:301:32)\n    at Object.enter (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/utilities/TypeInfo.js:391:27)\n    at visit (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/language/visitor.js:197:21)\n    at validate (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/graphql/validation/validate.js:91:24)\n    at Object.fastifyGraphQl [as graphql] (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:471:32)\n    at _Reply.graphql (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/mercurius/index.js:242:16)\n    at Object.<anonymous> (file:///Users/alexleschanz/Documents/Projects/EucoAPI/dist/index.js:173:18)\n    at preHandlerCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:128:37)\n    at preValidationCallback (/Users/alexleschanz/Documents/Projects/EucoAPI/node_modules/fastify/lib/handleRequest.js:112:5)","locations":[{"line":83,"column":21}],"extensions":{}}],"name":"FastifyError","code":"MER_ERR_GQL_VALIDATION","statusCode":400,"errors":[{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"__schema\".","locations":[{"line":3,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"queryType\".","locations":[{"line":4,"column":9}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"mutationType\".","locations":[{"line":5,"column":9}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"subscriptionType\".","locations":[{"line":6,"column":9}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"types\".","locations":[{"line":7,"column":9}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"directives\".","locations":[{"line":10,"column":9}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"locations\".","locations":[{"line":13,"column":11}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"args\".","locations":[{"line":14,"column":11}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","locations":[{"line":22,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"fields\".","locations":[{"line":25,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"args\".","locations":[{"line":28,"column":9}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"type\".","locations":[{"line":31,"column":9}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"inputFields\".","locations":[{"line":37,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"interfaces\".","locations":[{"line":40,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"enumValues\".","locations":[{"line":43,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"possibleTypes\".","locations":[{"line":49,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"type\".","locations":[{"line":57,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","locations":[{"line":62,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","locations":[{"line":64,"column":7}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","locations":[{"line":65,"column":9}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","locations":[{"line":67,"column":9}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","locations":[{"line":68,"column":11}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","locations":[{"line":70,"column":11}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","locations":[{"line":71,"column":13}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","locations":[{"line":73,"column":13}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","locations":[{"line":74,"column":15}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","locations":[{"line":76,"column":15}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","locations":[{"line":77,"column":17}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","locations":[{"line":79,"column":17}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","locations":[{"line":80,"column":19}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"ofType\".","locations":[{"line":82,"column":19}]},{"message":"GraphQL introspection has been disabled, but the requested query contained the field \"kind\".","locations":[{"line":83,"column":21}]}]},"msg":"Graphql validation error"}
mcollina commented 1 year ago

Seems about correct. You can always handle how the errors are rendered with the errorFormatter option

Creative-Difficulty commented 1 year ago

@mcollina This issue is not completed!! This error clogs up memory and wastes space in my logfile. Furthermore, it serves no real purpose as it is just a bunch of gibberish. Could you please provide and example of your option?

mcollina commented 1 year ago

Could you please provide and example of your option?

Unfortunately I do not have time right now. There are plenty of examples in Pino, Fastify and Mercurius docs.

mcollina commented 1 year ago

Furthermore, it serves no real purpose as it is just a bunch of gibberish.

It clearly states what happened and why. It's not gibberish at all.

Creative-Difficulty commented 1 year ago

No, it doesnt. If you konw it, can you explain it please. The people looking at the logs in production cannot decrypt hyrogliphs

mcollina commented 1 year ago

Your attitude is not acceptable in this community. I'm locking this discussion.