Skip to content

feat(gateway): Conditional schema fetch based on ifAfterId (version-0.x) #1198

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

Merged
merged 3 commits into from
Nov 12, 2021

Conversation

trevor-scheer
Copy link
Contributor

Duplicating #1152 from main. This change benefits version-0.x as well.

The Apollo Uplink endpoint now supports conditional schema fetching via a new
parameter ifAfterId. If this parameter is specified then the endpoint will only
return a schema with an ID that is newer than ifAfterId.

This commit adds the ifAfterId parameter to the Gateway supergraph query and
additionally handles the new case where the schema is unchanged accordingly.
@trevor-scheer trevor-scheer changed the base branch from main to version-0.x November 12, 2021 00:17
@trevor-scheer
Copy link
Contributor Author

Skipping review, this code is duplicated from #1152 which I reviewed and approved.

@trevor-scheer trevor-scheer merged commit 73ff067 into version-0.x Nov 12, 2021
@trevor-scheer trevor-scheer deleted the trevor/ifAfterId-version-0.x branch November 12, 2021 00:41
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.

2 participants