bigfork/silverstripe-graphql-sdl

Outputs a GraphQL System Definition Language (SDL) file for your schema

Installs: 752

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.0.0 2022-02-04 12:34 UTC

This package is auto-updated.

Last update: 2024-04-07 20:33:49 UTC


README

Automatically generates a file containing your GraphQL schema, represented by the GraphQL Type System Definition Language. This is mainly intended for use with the IntelliJ GraphQL plugin.

Install

composer require bigfork/silverstripe-graphql-sdl

Usage

The SDL files are, by default, only built in dev mode and are output to public/_graphql/schemaname.sdl.graphql. All schemas are included, but if this causes problems (e.g. conflicting types) it’s possible to only enable this for specific schemas via YAML config:

Bigfork\SilverstripeGraphQLSDL\SDLTranscribeHandler:
  schemas:
    - default