keystonejs / keystone

The most powerful headless CMS for Node.js — built with GraphQL and React
https://keystonejs.com
MIT License
8.98k stars 1.13k forks source link

Virtual Input #9139

Open ggpwnkthx opened 1 month ago

ggpwnkthx commented 1 month ago

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.

codesandbox-ci[bot] commented 1 month ago

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