Skip to content

feat: support doc type used as field type#48

Closed
kbrabrand wants to merge 1 commit intomainfrom
fix/cldx-4774/support-doc-as-field-type
Closed

feat: support doc type used as field type#48
kbrabrand wants to merge 1 commit intomainfrom
fix/cldx-4774/support-doc-as-field-type

Conversation

@kbrabrand
Copy link
Contributor

Description

Add a test to guard against future regressions in support for using doc types as the type for fields in the schema.

The Sanity studio currently supports using a document type as a field type. After getting #45 from a user using document types as field types I found that it was not supported in codegen.

There's a PR open for fixing the underlying issue in groq-js.

CLDX-4774

PENDING UPSTREAM RELEASE
This test will not pass before we have a version of groq-js with the fix in it.

What to review

Nothing but the new test.

@kbrabrand kbrabrand closed this Feb 16, 2026
@kbrabrand kbrabrand deleted the fix/cldx-4774/support-doc-as-field-type branch February 16, 2026 12:45
@kbrabrand
Copy link
Contributor Author

Closed as the issue with document type as field type has been resolved by changing the schema extraction instead of in the code generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant