feat: add support for fieldsets
waspeer opened this issue · comments
Wannes Salomé commented
🆒 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.
Wannes Salomé commented
Btw, I'd be happy to contribute when we figure out the right api