Skip to content

Comments

[#custom-data] Add declarative metaobject definition#192

Closed
shauns wants to merge 2 commits intoshauns/custom-data-metafieldfrom
shauns/custom-data-metaobject
Closed

[#custom-data] Add declarative metaobject definition#192
shauns wants to merge 2 commits intoshauns/custom-data-metafieldfrom
shauns/custom-data-metaobject

Conversation

@shauns
Copy link
Contributor

@shauns shauns commented Feb 9, 2026

Note

This PR has been superseded by #195.

Add a minimal example of declarative metaobject definitions to
complement the metafield added in the previous PR. This adds:

- write_metaobjects and write_metaobject_definitions to scopes
- An "example" metaobject definition in shopify.app.toml with
  title and description fields
- A metaobjectUpsert mutation in the product creation flow
- UI output showing the metaobject JSON response

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@shauns shauns requested a review from a team as a code owner February 9, 2026 10:31
Match the pattern used by the product metafield query: use aliased
field(key:) lookups with jsonValue instead of the generic fields list.
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