Skip to content

support the incremental response field#1551

Merged
Geal merged 9 commits intomainfrom
geal/support-incremental-field
Aug 22, 2022
Merged

support the incremental response field#1551
Geal merged 9 commits intomainfrom
geal/support-incremental-field

Conversation

@Geal
Copy link
Copy Markdown
Contributor

@Geal Geal commented Aug 19, 2022

Fix #1548

deferred response should return payloads in an array in the response's
incremental field

deferred response should return payloads in an array in the response's
`incremental` field
@github-actions

This comment has been minimized.

@Geal Geal requested review from garypen and o0Ignition0o and removed request for o0Ignition0o August 19, 2022 13:02
@Geal Geal marked this pull request as ready for review August 19, 2022 13:13
@Geal
Copy link
Copy Markdown
Contributor Author

Geal commented Aug 19, 2022

reference: graphql/defer-stream-wg#41

Copy link
Copy Markdown
Contributor

@o0Ignition0o o0Ignition0o left a comment

Choose a reason for hiding this comment

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

A slight worry about the requirements around incremental, and 1 question about snapshots. otherwise lgtm

extensions: Default::default(),
subselection: Default::default(),
has_next: Default::default(),
..Response::default()
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.

😅

impl Response {
/// Constructor
#[builder(visibility = "pub")]
#[allow(clippy::too_many_arguments)]
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.

I think this is done automagically since 0.5.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

here the lint was still complaining, unfortunately :/

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.

interesting, we should open an issue

@abernix abernix added this to the vNEXT milestone Aug 22, 2022
@Geal Geal enabled auto-merge (squash) August 22, 2022 08:39
@Geal Geal merged commit 1434d45 into main Aug 22, 2022
@Geal Geal deleted the geal/support-incremental-field branch August 22, 2022 08:59
@Geal Geal mentioned this pull request Aug 22, 2022
@Geal Geal self-assigned this Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align @defer implementation with latest proposed spec updates

3 participants