Open shobhitsharma opened 1 year ago
Thanks @shobhitsharma , can you please share more details? what version of this package are you using? and what GraphQL server + NodeJS version are you running?
"@apollo/server": "4.9.3"
"@graphql-hive/client": "0.24.1"
"graphql": "16.6.0"
I can't reproduce it :(
Can you try 0.24.2-alpha-20230928151650-fb1f0fa0
? In https://github.com/kamilkisiela/graphql-hive/pull/2979 I added a log message with an operation name when a DocumetNode
is not available. It should help us narrow down the issue to a specific GraphQL operation.
Can you try
0.24.2-alpha-20230928151650-fb1f0fa0
? In #2979 I added a log message with an operation name when aDocumetNode
is not available. It should help us narrow down the issue to a specific GraphQL operation.
Failed to collect operation TypeError: Cannot read properties of undefined (reading 'name')
at Object.Field (/node_modules/.pnpm/@graphql-hive+client@0.24.2-alpha-20230928151650-fb1f0fa0_graphql@16.6.0/node_modules/@graphql-hive/client/cjs/internal/usage.js:253:54)
at Object.enter (/node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/utilities/TypeInfo.js:391:27)
at visit (/node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/visitor.js:197:21)
at collect (/node_modules/.pnpm/@graphql-hive+client@0.24.2-alpha-20230928151650-fb1f0fa0_graphql@16.6.0/node_modules/@graphql-hive/client/cjs/internal/usage.js:249:29)
at /node_modules/.pnpm/@graphql-hive+client@0.24.2-alpha-20230928151650-fb1f0fa0_graphql@16.6.0/node_modules/@graphql-hive/client/cjs/internal/utils.js:38:23
at complete (/node_modules/.pnpm/@graphql-hive+client@0.24.2-alpha-20230928151650-fb1f0fa0_graphql@16.6.0/node_modules/@graphql-hive/client/cjs/internal/usage.js:122:54)
at Object.willSendResponse (/node_modules/.pnpm/@graphql-hive+client@0.24.2-alpha-20230928151650-fb1f0fa0_graphql@16.6.0/node_modules/@graphql-hive/client/cjs/apollo.js:171:25)
at /node_modules/.pnpm/@apollo+server@4.9.3_graphql@16.6.0/node_modules/@apollo/server/dist/cjs/requestPipeline.js:274:75
at Array.map (<anonymous>)
at invokeWillSendResponse (/node_modules/.pnpm/@apollo+server@4.9.3_graphql@16.6.0/node_modules/@apollo/server/dist/cjs/requestPipeline.js:274:44)"
@imdadul hmm to me it seems like GraphQLSchema is not in sync with GraphQL operation.
Can you try 0.24.3-alpha-20231005085447-ceb7a201
? It should display operation's name and a location of the error (path to a field).
Will you be able to create a reproduction?
Stacktrace