Skip to content

Latest commit

 

History

History
103 lines (70 loc) · 3.28 KB

GraphQL.md

File metadata and controls

103 lines (70 loc) · 3.28 KB

GraphQL

Explorer

Short Introduction Video

Preview

Query Samples

If not otherwise noted then all samples can be tested using this Endpoint.

Mutation Samples

Configuration

Customizing the endpoint

The standard endpoint is

/pimcore-graphql-webservices/{configurationname}?apikey={yourApiKey}

So if your configuration name is blogdemo and your apikey 123456 then your endpoint would be

/pimcore-graphql-webservices/blogdemo?apikey=12345

Here is a configuration example showing how to override the standard endpoint:

# app/config/routing.yml

admin_pimcoredatahub_config:
    path: /pimcore-datahub-webservices-my-endpoint/explorer/{clientname}
    defaults: { _controller: PimcoreDataHubBundle:GraphQLExplorer:explorer }

admin_pimcoredatahub_webservice:
  path: /pimcore-graphql-webservices-my-endpoint/{clientname}
  defaults: { _controller: PimcoreDataHubBundle:Webservice:webonyx }

Queries

Mutations

See Mutation Documentation

Endpoint + Hands-on-testing using iExplorer

Open iExplorer

Configuration & Deployment

The configuration file can be found var/config/datahub-configurations.php.

As a workspace permission index is kept in the database as well you have to run the datahub:graphql:rebuild-definitions to rebuild the index.

Either call

datahub:graphql:rebuild-definitions

to do that for all definitions, or

datahub:graphql:rebuild-definitions --definitions=newsapp,otherendpoint

for specific definitions.

Events

See Events Documentation