metaobject Definition By Type
Requires access scope.
Arguments
- type (String!)
- Anchor to typetype•String!required
The type of the metaobject definition to return.
Anchor to Possible returnsPossible returns
- MetaobjectDefinition (MetaobjectDefinition)
- Anchor to MetaobjectDefinitionMetaobject•Metaobject
Definition Definition Defines the structure and configuration for a custom data type in Shopify. Each definition specifies the fields, validation rules, and capabilities that apply to all
Metaobjectentries created from it.The definition includes field definitions that determine what data to store, access controls for the Shopify admin and Storefront APIs, and capabilities such as publishability and translatability. You can track which
Apporcreated the definition and optionally base it on a.- Anchor to accessaccess•Metaobject
Access! non-null Access configuration for the metaobject definition.
- Anchor to capabilitiescapabilities•Metaobject
Capabilities! non-null The capabilities of the metaobject definition.
- Anchor to createdByAppcreated•App!
By App non-null The app used to create the metaobject definition.
- Anchor to createdByStaffcreated•Staff
By Staff Member The staff member who created the metaobject definition.
- Anchor to descriptiondescription•String
The administrative description.
- Anchor to displayNameKeydisplay•String
Name Key The key of a field to reference as the display name for each object.
- Anchor to fieldDefinitionsfield•[Metaobject
Definitions Field Definition!]! non-null The fields defined for this object type.
- Anchor to hasThumbnailFieldhas•Boolean!
Thumbnail Field non-null Whether this metaobject definition has field whose type can visually represent a metaobject with the
.- •ID!non-null
A globally-unique ID.
- Anchor to metaobjectsmetaobjects•Metaobject
Connection! non-null A paginated connection to the metaobjects associated with the definition.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to metaobjectsCountmetaobjects•Int!
Count non-null The count of metaobjects created for the definition.
- Anchor to namename•String!non-null
The human-readable name.
- Anchor to standardTemplatestandard•Standard
Template Metaobject Definition Template The standard metaobject template associated with the definition.
- Anchor to typetype•String!non-null
The type of the object definition. Defines the namespace of associated metafields.