Skip to content

feat(generic-sdk): respect live queries & use AsyncIterable if possible - #8204

Merged
ardatan merged 2 commits into
masterfrom
sdk-async-iterable
Aug 9, 2022
Merged

feat(generic-sdk): respect live queries & use AsyncIterable if possible#8204
ardatan merged 2 commits into
masterfrom
sdk-async-iterable

Conversation

@ardatan

@ardatan ardatan commented Aug 9, 2022

Copy link
Copy Markdown
Contributor
  • Respect GraphQL Live Queries like Subscriptions and use the stream return types (AsyncIterable or Observable).
  • Previously if there was no usingObservableFrom set in the configuration, the plugin was using Promise as subscriptions' return type, and this is wrong. Now it uses AsyncIterable in this case.

@vercel

vercel Bot commented Aug 9, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
graphql-code-generator ✅ Ready (Inspect) Visit Preview Aug 9, 2022 at 9:54AM (UTC)

@changeset-bot

changeset-bot Bot commented Aug 9, 2022

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4b1981a

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

This PR includes changesets to release 1 package
Name Type
@graphql-codegen/typescript-generic-sdk Major

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

@github-actions

github-actions Bot commented Aug 9, 2022

Copy link
Copy Markdown
Contributor

🚀 Snapshot Release (alpha)

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

Package Version Info
@graphql-codegen/typescript-generic-sdk 3.0.0-alpha-20220809094947-926d246b5 npm ↗︎ unpkg ↗︎

Comment thread packages/plugins/typescript/generic-sdk/src/visitor.ts
Comment thread packages/plugins/typescript/generic-sdk/src/visitor.ts
Comment thread .changeset/twelve-insects-invite.md Outdated

@charlypoly charlypoly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ardatan, feel free to merge!

@ardatan
ardatan merged commit 25a5b0f into master Aug 9, 2022
@ardatan
ardatan deleted the sdk-async-iterable branch August 9, 2022 09:58
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