GraphQL
This class provides functionality for registering GraphQL-related services, such as various
query objects and a GraphQL requestor processor, in the BigCommerce container. The register
method configures these services to be accessed globally through the container.
- Full name:
\BigCommerce\Container\GraphQL
- Parent class:
Provider
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
GRAPHQL_REQUESTOR | public | string | ’bigcommerce.graphql_requestor’ |
QUERY | public | string | ’bigcommerce.graphql_query’ |
PRODUCT_QUERY | public | string | ’bigcommerce.graphql_query_products’ |
REVIEWS_QUERY | public | string | ’bigcommerce.graphql_query_reviews’ |
TERMS_QUERY | public | string | ’bigcommerce.graphql_query_terms’ |
CUSTOMER_QUERY | public | string | ’bigcommerce.graphql_query_customer’ |
Methods
register
Registers the GraphQL-related services in the container.
public register(\Pimple\Container $container): mixed
This method registers the GraphQL queries (products, reviews, terms, customer) and the GraphQL_Processor
service that will be used to execute GraphQL requests. These services are registered with specific keys
that can be accessed via the container.
Parameters:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | The Pimple container instance used for managing dependencies. |
Automatically generated on 2025-01-21