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

Add utility function for incremental response. #462

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

Conversation

chrischen
Copy link

Add utility function to convert GraphQL spec incremental response for @defer/@stream fragments so that they work with the expected shape from Relay.

Chris Chen added 2 commits August 15, 2023 11:32
Add utility function to convert GraphQL spec incremental response for @defer/@stream fragments so that they work with the expected shape from Relay.
Refactor Defer response converter so that the unsafe magic JS external function is just the object merge. Also implement a type-safe converter using object types, though it may not be necessary in the future as this problem should be resolved if Relay starts conforming to spec.
Fix type errors for the interface file.
Reimplement to avoid use of Array.filterMap which is included in Rescript Core.
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.

None yet

2 participants