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

Commits on Aug 15, 2023

  1. Add utility function for incremental response.

    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 committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    8e53864 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Refactor Defer response helper functions.

    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.
    Chris Chen committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    7b7460d View commit details
    Browse the repository at this point in the history
  2. Fix type errors.

    Fix type errors for the interface file.
    Reimplement to avoid use of Array.filterMap which is included in Rescript Core.
    chrischen committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    642a553 View commit details
    Browse the repository at this point in the history