Skip to content

Support TypedDocumentString via DocumentTypeDecoration in @apollo/client #390

@benasher44

Description

@benasher44

Hi there! As of v4 of graphql-code-generator, there is now a string alternative to using TypedDocumentNode, which still brings along the type.

I think @apollo/client could support this by accepting DocumentTypeDecoration as its type in react hooks, and then it would get the benefit of not having to convert the query to a string for the network request (while still having nice types)

Metadata

Metadata

Assignees

No one assigned

    Labels

    TypeScriptFeature requests related to TypeScript typings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions