Skip to content

Commit

Permalink
feat: Optional "id" field add to "MetaDataInput" type for overwriting…
Browse files Browse the repository at this point in the history
… existing meta
  • Loading branch information
kidunot89 committed Jun 24, 2022
1 parent b073dce commit d048f9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/type/input/class-meta-data-input.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public static function register() {
array(
'description' => __( 'Meta data.', 'wp-graphql-woocommerce' ),
'fields' => array(
'id' => array(
'type' => 'String',
'description' => __( 'Meta ID.', 'wp-graphql-woocommerce' ),
),
'key' => array(
'type' => array( 'non_null' => 'String' ),
'description' => __( 'Meta key.', 'wp-graphql-woocommerce' ),
Expand Down

0 comments on commit d048f9a

Please sign in to comment.