Automattic\WooCommerce\Internal\Api\Autogenerated
RootQueryType::get
Method of the class: RootQueryType{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = RootQueryType::get(): ObjectType;
RootQueryType::get() RootQueryType::get code WC 10.9.1
public static function get(): ObjectType {
if ( null === self::$instance ) {
self::$instance = new ObjectType(
array(
'name' => 'Query',
'fields' => fn() => array(
'products' => ListProducts::get_field_definition(),
'product' => GetProduct::get_field_definition(),
'coupon' => GetCoupon::get_field_definition(),
'coupons' => ListCoupons::get_field_definition(),
MetadataController::FIELD_NAME => MetadataController::get_field_definition(),
),
)
);
}
return self::$instance;
}