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

support the incremental response field #1551

Merged
merged 9 commits into from
Aug 22, 2022
Merged

Conversation

Geal
Copy link
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 o0Ignition0o and garypen 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
Contributor Author

Geal commented Aug 19, 2022

reference: graphql/defer-stream-wg#41

Copy link
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
Contributor

Choose a reason for hiding this comment

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

😅

}

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

apollo-router/src/response.rs Show resolved Hide resolved
apollo-router/tests/integration_tests.rs Show resolved Hide resolved
@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