-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscription Resolvers Type Error with withFilter #8547
Labels
core
Related to codegen core/cli
Comments
Please share a reproduction using our template. |
Hi @ardatan @daytona63 i have the issue. |
After so many years of that Apollo library not being maintained, I wouldn't count on it releasing a new version or merging PRs... If you are using GraphQL Subscriptions, I would highly recommend you to use Yoga Server |
Duplicate of #7197 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
SubscriptionResolvers
does not handle the type of withFilterYour Example Website or App
Non
Steps to Reproduce the Bug or Issue
Run with the Codegen Config File
Expected behavior
SubscriptionResolvers
To work with withFilterScreenshots or Videos
No response
Platform
OS
: macOS M1 ProNodeJS
: v18.12.0 LTSgraphql
: "^16.6.0"@graphql-codegen/add
: "^3.2.1"@graphql-codegen/cli
: "^2.13.8"@graphql-codegen/gql-tag-operations-preset
: "^1.7.0"@graphql-codegen/graphql-modules-preset
: "^2.5.4"@graphql-codegen/introspection
: "^2.2.1"@graphql-codegen/typescript
: "^2.8.0"@graphql-codegen/typescript-document-nodes
: "^2.3.5"@graphql-codegen/typescript-resolvers
: "^2.7.5"Codegen Config File
definitions:
add: &top-comment
content: >
/**
* NOTE: THIS IS AN AUTO-GENERATED FILE. DO NOT MODIFY IT DIRECTLY.
*/
overwrite: true
watch: false
schema: './src/gql/**/typeDefs/.gql'
emitLegacyCommonJSImports: false
generates:
./src/gql/:
preset: graphql-modules
presetConfig:
baseTypesPath: ../generated-types/graphql.ts # Where to create the complete schema types
filename: generated-types/module-types.ts # Where to create each module types
plugins:
- add: *top-comment
- add:
content: 'import { CustomScalars } from "../shared/scalars.js"'
- typescript:
enumsAsTypes: false
typesPrefix: GQL_
scalars:
Upload: CustomScalars['Upload']
Date: CustomScalars['Date']
DateTime: CustomScalars['DateTime']
EmailAddress: CustomScalars['EmailAddress']
JSON: CustomScalars['JSON']
ObjectID: CustomScalars['ObjectID']
UUID: CustomScalars['UUID']
- typescript-resolvers:
enumsAsTypes: false
typesPrefix: GQL_
noNamespaces: true
useIndexSignature: true
contextType: 'GraphQLModules.GlobalContext'
./graphql.schema.json:
plugins:
- 'introspection'
Additional context
No response
The text was updated successfully, but these errors were encountered: