graphql-typed-document-node icon indicating copy to clipboard operation
graphql-typed-document-node copied to clipboard

An improved version of `DocumentNode` for seamless TypeScript integration for GraphQL.

Results 41 graphql-typed-document-node issues
Sort by recently updated
recently updated
newest added
trafficstars

Many package versions in the example are outdated and not working. This PR uses the latest versions of packages as of today, and it works. Type file was generated correctly.

Hi, I'm trying out your library. The example works fine for me, but when I apply it to my app, it failed to compile. I have generated the types from...

Hello, I am trying to make it working, but unsuccesfully. Could you be so kind to check it out? I am using @vue/apollo-composable 4.0.0-alpha.16 This is my code: ```js import...

@dotansimha I try to upgrade apollo client on our codebase and realized there is no patch for Apollo client ~3.5.0. Are there any plans to add this version, or can...

TypedDocumentNode type landed in graphql-js a while ago: https://github.com/graphql/graphql-js/pull/2749 since codegen (and probably some early adaptor lib authors) use this module as a source for the TypeDocumentNode type, we now...

@dotansimha Hi. Awesome work with this. While I am able to properly generate types for all the queries and mutations with this, I was wondering how you would handle type...

In terms of typed-document-node I think we should rather make it a specification for baking-in types into a TypeScript type and showing how to extract the type from it: ```ts...

``` 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...

I tried to upgrade my app to use v3.1.2, but without any other code changes, the following error shows up on build: > Error: Failed to resolve entry for package...

# Summary I've updated the implementation of the `__apiType` method to shorthand method definition. This modification enables bivariance in the variable type. # Details Let's consider a function that takes...