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
typeEnvironment {
"Retrieve application version"version: String
}
typeQuery {
"Gets current system environment"environment: Environment!
}
test.graphql
query env {
environment {
version
}
}
This generates typescript with the following error:
const EnvDocument: DocumentNode
Argument of type '{ requestPolicy?: Urql.RequestPolicy | undefined; context?: Partial<Urql.OperationContext> | undefined; pause?: boolean | undefined; variables?: Exact<{ [key: string]: never; }> | undefined; query: DocumentNode; }' is not assignable to parameter of type 'UseQueryArgs<Exact<{ [key: string]: never; }>, EnvQuery>'.
Type '{ requestPolicy?: Urql.RequestPolicy | undefined; context?: Partial<Urql.OperationContext> | undefined; pause?: boolean | undefined; variables?: Exact<{ [key: string]: never; }> | undefined; query: DocumentNode; }' is not assignable to type '{ variables: Exact<{ [key: string]: never; }>; }'.
Types of property 'variables' are incompatible.
Type 'Exact<{ [key: string]: never; }> | undefined' is not assignable to type 'Exact<{ [key: string]: never; }>'.
Type 'undefined' is not assignable to type 'Exact<{ [key: string]: never; }>'.ts(2345)
The text was updated successfully, but these errors were encountered:
To reproduce:
Package.json
GraphQL codegen:
schema.graphql
test.graphql
This generates typescript with the following error:
const EnvDocument: DocumentNode
Argument of type '{ requestPolicy?: Urql.RequestPolicy | undefined; context?: Partial<Urql.OperationContext> | undefined; pause?: boolean | undefined; variables?: Exact<{ [key: string]: never; }> | undefined; query: DocumentNode; }' is not assignable to parameter of type 'UseQueryArgs<Exact<{ [key: string]: never; }>, EnvQuery>'.
Type '{ requestPolicy?: Urql.RequestPolicy | undefined; context?: Partial<Urql.OperationContext> | undefined; pause?: boolean | undefined; variables?: Exact<{ [key: string]: never; }> | undefined; query: DocumentNode; }' is not assignable to type '{ variables: Exact<{ [key: string]: never; }>; }'.
Types of property 'variables' are incompatible.
Type 'Exact<{ [key: string]: never; }> | undefined' is not assignable to type 'Exact<{ [key: string]: never; }>'.
Type 'undefined' is not assignable to type 'Exact<{ [key: string]: never; }>'.ts(2345)
The text was updated successfully, but these errors were encountered: