Skip to content

Commit c9e8439

Browse files
authored
feat: Optional "id" field add to "MetaDataInput" type for overwriting existing meta (#631)
1 parent b073dce commit c9e8439

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/type/input/class-meta-data-input.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ public static function register() {
2222
array(
2323
'description' => __( 'Meta data.', 'wp-graphql-woocommerce' ),
2424
'fields' => array(
25+
'id' => array(
26+
'type' => 'String',
27+
'description' => __( 'Meta ID.', 'wp-graphql-woocommerce' ),
28+
),
2529
'key' => array(
2630
'type' => array( 'non_null' => 'String' ),
2731
'description' => __( 'Meta key.', 'wp-graphql-woocommerce' ),

0 commit comments

Comments
 (0)