-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.0] Make nodes fully immutable by adding API for allowing plugins t…
…o add fields (#1035) * remove updateNode action creator, rename 'pluginName' to 'pluginOwner', and add check that only original node creator is updating a node * Add top-level field to nodes 'pluginFields' * Replace 'updateNode' action creator with 'addChildNodeToParentNode' and 'addFieldToNode' * Add test for nodes being created with field 'pluginFields' * Use stripIndent so multiline strings look nicer in code * Rename addChildNodeToParentNode to addNodeToParent * Update transformer tests * Fixed bit of code that didn't get updated for node structure refactor * Simplify error message * Check if there's actually results so avoiding access error * Test nodes often don't have internal set * Rename 'pluginFields' to 'fields' * Rename other fields with 'plugin' in them * Update migration guide with changes * Update gatsbygram example code to wrap graphql call in resolve * Update snapshot
- Loading branch information
1 parent
4784b06
commit 55845c9
Showing
33 changed files
with
777 additions
and
326 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
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.