privateMetafieldUpsert mutation

Version 2020-01 (Release candidate)

Creates or update a private metafield.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( PrivateMetafieldInput! ) required

Specifies the input fields for the private metafield.

PrivateMetafieldInput fields

key (String!) Required

The key for the private metafield.

namespace (String!) Required

The namespace for the private metafield.

owner (ID)

The owning resource.

valueInput (PrivateMetafieldValueInput!) Required

The value and value type of the metafield, wrapped in a ValueInput object.

Return fields

privateMetafield (PrivateMetafield)

The private metafield that was created or updated.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-10 (Latest)

Creates or update a private metafield.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( PrivateMetafieldInput! ) required

Specifies the input fields for the private metafield.

PrivateMetafieldInput fields

key (String!) Required

The key for the private metafield.

namespace (String!) Required

The namespace for the private metafield.

owner (ID)

The owning resource.

valueInput (PrivateMetafieldValueInput!) Required

The value and value type of the metafield, wrapped in a ValueInput object.

Return fields

privateMetafield (PrivateMetafield)

The private metafield that was created or updated.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Sign up for a Partner account to get started.

Sign up