-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relay: Add
parentType
to Refragmentable id
Fields
Summary: Anytime a generated field has the possibility of being refragmented (i.e. splitting the fields of dynamically-typed nodes into typed fragments), we need to make sure we include the `parentType`. Otherwise, if the generated field is refragmented, `getParentType()` will throw. This fixes the two places where this can currently happen: - `RelayQueryPath` generates `id` fields for the query path. - `diffRelayQuery` generates `id` fields for `connection(find: ...){edges{node{id}}}`. @bypass-lint Reviewed By: @josephsavona Differential Revision: D2432010
- Loading branch information
Showing
4 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters