Skip to content

open-sausages/silverstripe-graphql-devtools

 
 

Repository files navigation

Dev tools for silverstripe-graphql

Tools to help developers building new applications on SilverStripe’s GraphQL API

Installation

$ composer require silverstripe/graphql-devtools

Requirements

What it does

This module adds an implementation of graphiql, an in-browser IDE for GraphQL servers. It provides browseable documentation of your schema, as well as autocomplete and syntax-checking of your queries.

This tool is available in dev mode only. It can be accessed at /dev/graphiql/.

Setting the endpoint

In most installations of SilverStripe, there are at least two GraphQL servers running -- one for the admin (admin/graphql) and one for the user space (/graphql). The IDE can only browse one schema at a time, so it must be configured with a route to use.

By default, it will use the /graphql route. This can be changed in the SilverStripe\GraphQLDevTools\GraphiQLController.default_route setting. Otherwise, you can specify an endpoint per request using the GET variable endpoint, e.g. /dev/graphiql?endpoint=admin/graphql.

About

Tools to help developers building new applications on SilverStripe’s GraphQL API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 48.2%
  • JavaScript 46.3%
  • Scheme 5.5%