-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better support for non-standard IDs (#263)
* add config for custom type keys * add multiple keys to selection set * add refetch customization * failing test * configure node policy as a default value for the config * paginate can fall on a custom type * generate pagination query to match custom ids * fixed tests * embed refetch target type so we can figure out the right query field to pull values out of * pagination handlers look at the custom field for responses with type configs * compute pagination handler variables using type keys * TypeConfig.refetch is now required - if `id` isnt a valid key, node(id: ID) wont work * added changeset * rename TypeConfig.refetch to TypeConfig.resolve * Config cannot be imported into runtime * duplicate id computation logic (will dry up in next PR) * streamline id computation * remove trailing __ in id
- Loading branch information
1 parent
3f34bff
commit c5cce52
Showing
26 changed files
with
685 additions
and
172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'houdini': patch | ||
'houdini-common': patch | ||
--- | ||
|
||
Added support for non-standard IDs and paginated fragment queries |
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
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
Oops, something went wrong.