sanity-typed-queries
sanity-typed-queries copied to clipboard
feat: add support for fieldsets
🆒 Your use case It would be nice to be able to add fields to a fieldset (https://www.sanity.io/docs/object-type#fieldsets-AbjN0ykp).
🆕 The solution you'd like A intuitive solution would be something like this:
defineObject(
'something',
{
fieldset: {
field: { type: 'string' },
anotherField: { type: 'date' },
},
},
);
🔍 Alternatives you've considered A possible alternative could be to manually edit the generated object / document, but this is of course far from ideal.
Btw, I'd be happy to contribute when we figure out the right api