Automattic\WooCommerce\Internal\Api\Autogenerated
RootMutationType::get
Method of the class: RootMutationType{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = RootMutationType::get(): ObjectType;
RootMutationType::get() RootMutationType::get code WC 10.9.1
public static function get(): ObjectType {
if ( null === self::$instance ) {
self::$instance = new ObjectType(
array(
'name' => 'Mutation',
'fields' => fn() => array(
'createProduct' => CreateProduct::get_field_definition(),
'updateProduct' => UpdateProduct::get_field_definition(),
'deleteProduct' => DeleteProduct::get_field_definition(),
'deleteCoupon' => DeleteCoupon::get_field_definition(),
'createCoupon' => CreateCoupon::get_field_definition(),
'updateCoupon' => UpdateCoupon::get_field_definition(),
),
)
);
}
return self::$instance;
}