privateMetafieldUpsert mutation

Version unstable

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

Argument Description
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!]!)

    The list of errors that occurred from executing the mutation.

Version 2021-10 (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

Argument Description
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!]!)

    The list of errors that occurred from executing the mutation.

Version 2021-07 (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

Argument Description
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!]!)

    The list of errors that occurred from executing the mutation.

Version 2021-04

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.