Skip to content
New issue

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

feat: allow embedding the operation result type #148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

n1ru4l
Copy link
Collaborator

@n1ru4l n1ru4l commented Feb 3, 2023

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 n1ru4l requested a review from dotansimha February 3, 2023 12:42
@dotansimha
Copy link
Owner

@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 dotansimha force-pushed the feat-embed-operation-type branch from b6ecff7 to b6624c5 Compare February 5, 2023 02:33
@changeset-bot
Copy link

changeset-bot bot commented Feb 5, 2023

🦋 Changeset detected

Latest commit: b6624c5

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

@dotansimha
Copy link
Owner

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2023

🚀 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 ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants