HasMetafields
Represents information about the metafields associated to the specified resource.
# Represents information about the metafields associated to the specified resource. interface HasMetafields { # The metafield associated with the resource. metafield( # Identifier for the metafield (maximum of 30 characters). key: String!# Container for a set of metafields (maximum of 20 characters). namespace: String! ): Metafield
# A paginated list of metafields associated with the resource. metafields( # Returns the elements that come after the specified cursor. after: String
# Returns the elements that come before the specified cursor. before: String
# Returns up to the first
n
elements from the list. first: Int# Returns up to the last
n
elements from the list. last: Int# Finds all metafields with a specific namespace under the resource. namespace: String
# Reverse the order of the underlying list. reverse: Boolean = false ): MetafieldConnection! }
Possible types
Fields
metafield
(Metafield
)
The metafield associated with the resource.
Argument | Type | Default | Description |
---|---|---|---|
key required
|
String!
|
|
Identifier for the metafield (maximum of 30 characters). |
namespace required
|
String!
|
|
Container for a set of metafields (maximum of 20 characters). |
metafields
(MetafieldConnection!
)
A paginated list of metafields associated with the resource.
Argument | Type | Default | Description |
---|---|---|---|
after
|
String
|
|
Returns the elements that come after the specified cursor. |
before
|
String
|
|
Returns the elements that come before the specified cursor. |
first
|
Int
|
|
Returns up to the first |
last
|
Int
|
|
Returns up to the last |
namespace
|
String
|
|
Finds all metafields with a specific namespace under the resource. |
reverse
|
Boolean
|
|
Reverse the order of the underlying list. |