Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
1 vote
1 answer
231 views

I’m using Apollo Client v4 (4.0.5) with Next.js App Router and GraphQL Code Generator (typescript-react-apollo) to generate TypeScript types and hooks for my GraphQL API. Everything was working fine ...
kslmn's user avatar
  • 11
0 votes
0 answers
20 views

I get error: require() of ES Module D:\PROJEKTI\cvmds-client\node_modules\upper-case\dist\index.js from D:\PROJEKTI\cvmds-cl… error Command failed with exit code 1. This is package.json: { "...
Vlado Pandžić's user avatar
0 votes
1 answer
87 views

I have generated (from GraphQL Codegen and my API) a TypeScript types modules file and want to add all of its types to my project, application-wide (globally). The types are in src/generated/...
machineghost's user avatar
0 votes
1 answer
80 views

I’m using graphql-codegen with apollo-client. Everything works great except one thing: I tried to update cache after mutation, the update function of client.mutate doesn’t have typings for the cache ...
musketeerdt's user avatar
1 vote
1 answer
103 views

Is there a way to send multiple queries(netflix dgs generated query and projection DTO's) using the DgsGraphQlClient wrapper class? For example, I have below schema: type Query { books: [Book] ...
Giridhar's user avatar
0 votes
0 answers
81 views

I am using the graphql-codegen/cli library to generate queries and responses for my GraphQL requests on my TypeScript/React application. So far I'm creating my objects resulting in four files: ...
The Senator's user avatar
  • 5,421
0 votes
0 answers
43 views

I tried this for graphql type suggestion in typescript files. I have added graphql ^16.11.0 @0no-co/graphqlsp ^1.12.16 @graphql-codegen/cli ^5.0.6 @graphql-codegen/schema-ast ^4.1.0 @parcel/watcher ^2....
user30539480's user avatar
0 votes
0 answers
115 views

When trying to generate graphql queries automatically for my vite app, I'm encountering this error: 18:02 $ npm run codegen > [email protected] codegen > graphql-codegen /home/...
rmartrenado's user avatar
  • 1,616
0 votes
0 answers
209 views

mutation CreateFmfirmwarecompliance($user1: UserType!, $user2: UserType!,) { createFmfirmwarecompliance(input: $user1) { description name } createFmfirmwarecompliance(input: $...
nikunj's user avatar
  • 132
-1 votes
1 answer
109 views

GraphQL code generator ceased functioning correctly anymore. It no longer generates the expected code and has also deleted all previously generated files. codegen.ts and package.json was not changed. ...
nutipa's user avatar
  • 17
2 votes
1 answer
1k views

Getting a repeated Error: Invalid AST Node: {}. error when trying to hit my API using a combination of graphql, graphql-request, and react-query. Here's the root application where I'm making the call: ...
Carolyn's user avatar
  • 41
3 votes
0 answers
185 views

Background I have a large constants & types file, graphql.ts, produced by https://github.com/dotansimha/graphql-code-generator . When analyzing the output of webpack's chunks, I get something like ...
Albert Liu's user avatar
0 votes
1 answer
65 views

Here is my codeGen file const config: CodegenConfig = { schema: "http://localhost:3000/graphql", documents: ["core/shared/gql/**/*.ts"], // ignoreNoDocuments: true, // for ...
MiguelG's user avatar
  • 481
0 votes
1 answer
191 views

Sorry if this post has a lot of code, but I feel like its necessary in order to get the full context. Bear in mind we are using Jest + @testing-library/react + @apollo/client/testing for testing, the ...
Kim Vu's user avatar
  • 678
0 votes
1 answer
2k views

I'm using Apollo Client(3.7.17) with React to fetch data. I'm facing an issue where I have a long-running query, and if the user navigates away before the query completes, I want to abort the request ...
Ar26's user avatar
  • 1,139

15 30 50 per page
1
2 3 4 5
13