We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
overwrite: true schema: "http://localhost:4000" documents: "src/**/*.gql" generates: src/graphql/_generated/graphql.ts: plugins: - typescript - typescript-operations - typed-document-node config: # skipTypeNameForRoot: true skipTypename: true maybeValue: T | undefined
here is generated code:
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type Maybe<T> = T | undefined; export type InputMaybe<T> = T | undefined; export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }; export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; }; export type Mutation = { signup?: Maybe<Scalars['String']>; }; export type MutationSignupArgs = { email: Scalars['String']; firstName: Scalars['String']; lastName: Scalars['String']; password: Scalars['String']; referralCode?: InputMaybe<Scalars['String']>; }; export type Query = { ok: Scalars['Boolean']; }; export type SignupMutationVariables = Exact<{ firstName: Scalars['String']; lastName: Scalars['String']; email: Scalars['String']; password: Scalars['String']; referralCode?: InputMaybe<Scalars['String']>; }>; export type SignupMutation = { signup?: string | undefined }; export type QueryQueryVariables = Exact<{ [key: string]: never; }>; export type QueryQuery = { ok: boolean }; export const SignupDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"Signup"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"firstName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lastName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"password"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"referralCode"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"firstName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"firstName"}}},{"kind":"Argument","name":{"kind":"Name","value":"lastName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lastName"}}},{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}},{"kind":"Argument","name":{"kind":"Name","value":"password"},"value":{"kind":"Variable","name":{"kind":"Name","value":"password"}}},{"kind":"Argument","name":{"kind":"Name","value":"referralCode"},"value":{"kind":"Variable","name":{"kind":"Name","value":"referralCode"}}}]}]}}]} as unknown as DocumentNode<SignupMutation, SignupMutationVariables>; export const QueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Query"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ok"}}]}}]} as unknown as DocumentNode<QueryQuery, QueryQueryVariables>;
this is my SDL:
ok: Boolean! } type Mutation { signup(referralCode: String, firstName: String!, lastName: String!, email: String!, password: String!): String }
A few days ago, everything was working fine until I switched to NexsusJS framework for my backend.
I tried apollo client, I tried urql, but both have a problem parsing node type document.
urql
this is TypeError: graphql.print is not a function urql for example
TypeError: graphql.print is not a function
any ideas what I'm doing wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
here is generated code:
this is my SDL:
A few days ago, everything was working fine until I switched to NexsusJS framework for my backend.
I tried apollo client, I tried
urql
, but both have a problem parsing node type document.this is
TypeError: graphql.print is not a function
urql for exampleany ideas what I'm doing wrong?
The text was updated successfully, but these errors were encountered: