keystone
keystone copied to clipboard
Virtual Input
Core changes made so that virtual field types can now handle generic JSON input values that can be used by their respective hooks.
The virtual-field example has also been updated to show the use case of where Tag records, as they relate to Post records, are orderable. The tags field of the Post list will output the Tag records in the order specified by first querying the explicit relationship list, PostTags. If an array of Tag records are provided in the tags field of a Post mutation, whatever order they are in is how they will be reordered for that Post.
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit b66e4ebb2589487259bbecdc7cd2314a4487d139:
| Sandbox | Source |
|---|---|
| @keystone-6/sandbox | Configuration |
I don't know if virtual is the right abstraction for this, and JSON is too opinionated.
I don't think I can accept this pull request, but I will tag you in any related work. :yellow_heart: