Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for fieldsets #110

Open
waspeer opened this issue Nov 5, 2020 · 1 comment
Open

feat: add support for fieldsets #110

waspeer opened this issue Nov 5, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@waspeer
Copy link

waspeer commented Nov 5, 2020

🆒 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.

@waspeer waspeer added the enhancement New feature or request label Nov 5, 2020
@waspeer
Copy link
Author

waspeer commented Nov 6, 2020

Btw, I'd be happy to contribute when we figure out the right api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants