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

feat: allow embedding the operation result type

Open n1ru4l opened this issue 2 years ago • 4 comments
trafficstars

This will allow tooling such as @graphql-tools/executor-http to infer the execution result type of a TypedDocument and return Promise<AsyncIterable<ExecutionResult<T>>> or Promise<ExecutionResult<T>>, which removes the need of having to do code assertions.

n1ru4l avatar Feb 03 '23 12:02 n1ru4l

@n1ru4l do we expect any breaking change here? or this should not effect other libs that are using this version of typed-document-node?

dotansimha avatar Feb 05 '23 01:02 dotansimha

🦋 Changeset detected

Latest commit: b6624c58eaa4ccae76af0a18ff0383b0e18d1079

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphql-typed-document-node/core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Feb 05 '23 02:02 changeset-bot[bot]

@n1ru4l I rebased and added changeset. Feel free to merge (just please see my comment above)

dotansimha avatar Feb 05 '23 02:02 dotansimha

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-typed-document-node/core 3.2.0-alpha-20230205023330-f05a940 npm ↗︎ unpkg ↗︎

github-actions[bot] avatar Feb 05 '23 02:02 github-actions[bot]