keystone icon indicating copy to clipboard operation
keystone copied to clipboard

Virtual Input

Open ggpwnkthx opened this issue 1 year ago • 1 comments

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.

ggpwnkthx avatar May 10 '24 20:05 ggpwnkthx

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

codesandbox-ci[bot] avatar May 10 '24 20:05 codesandbox-ci[bot]

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:

dcousens avatar Oct 28 '24 06:10 dcousens