Automattic\WooCommerce\Api\Infrastructure
GraphQLControllerBase::get_schema
Public handle to the live GraphQL schema for runtime inspection.
Returns an opaque SchemaHandle{}; callers reach metadata (and any future schema-inspection operations) through methods on that object rather than touching the underlying engine type. The handle is cached and wraps the same engine schema this controller uses to serve real requests.
Method of the class: GraphQLControllerBase{}
No Hooks.
Returns
null. Nothing (null).
Usage
$GraphQLControllerBase = new GraphQLControllerBase(); $GraphQLControllerBase->get_schema(): SchemaHandle;
GraphQLControllerBase::get_schema() GraphQLControllerBase::get schema code WC 10.9.1
public function get_schema(): SchemaHandle {
if ( null === $this->schema_handle ) {
$this->schema_handle = new SchemaHandle( $this->get_engine_schema() );
}
return $this->schema_handle;
}