Type error in apollo-server@^2.4.6
See original GitHub issueHello,
Running apollo-opentracing@^1.2.0 with apollo-server@^2.4.6 I receive the following type error:
Type '(() => OpentracingExtension<any>)[]' is not assignable to type '(() => GraphQLExtension<any>)[]'.
Type '() => OpentracingExtension<any>' is not assignable to type '() => GraphQLExtension<any>'.
Type 'OpentracingExtension<any>' is not assignable to type 'GraphQLExtension<any>'.
Types of property 'requestDidStart' are incompatible.
Type '(infos: RequestStart) => (() => void) | undefined' is not assignable to type '(o: { request: Pick<Request, "url" | "method" | "headers">; queryString?: string | undefined; parsedQuery?: DocumentNode | undefined; operationName?: string | undefined; variables?: { ...; } | undefined; persistedQueryHit?: boolean | undefined; persistedQueryRegister?: boolean | undefined; context: any; requestConte...'.
Types of parameters 'infos' and 'o' are incompatible.
Type '{ request: Pick<Request, "url" | "method" | "headers">; queryString?: string | undefined; parsedQuery?: DocumentNode | undefined; operationName?: string | undefined; variables?: { ...; } | undefined; persistedQueryHit?: boolean | undefined; persistedQueryRegister?: boolean | undefined; context: any; requestContext: ...' is not assignable to type 'RequestStart'.
Types of property 'request' are incompatible.
Type 'Pick<Request, "url" | "method" | "headers">' is missing the following properties from type 'Request': clone, bodyUsed, arrayBuffer, json, text
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Error handling - Apollo GraphQL Docs
Apollo Server throws errors automatically when applicable. For example, it throws a GRAPHQL_VALIDATION_FAILED error whenever an incoming operation isn't valid ...
Read more >Migrating to Apollo Server 4 - Apollo GraphQL Docs
For background, Apollo Server uses type system features introduced in v4.7. ... If debug is true , GraphQL responses with errors include stack...
Read more >Error handling - Apollo GraphQL Docs
Apollo Server throws errors of most built-in types automatically when applicable. For example, it throws a ValidationError whenever an incoming operation isn't ...
Read more >Introduction to Apollo Client - Apollo GraphQL Docs
Apollo Client is a comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL.
Read more >Handling operation errors - Apollo GraphQL Docs
Error types. Executing GraphQL operations on a remote server can result in GraphQL errors or network errors. GraphQL errors. These are errors related...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Awesome, thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.