schema/

directory
v1.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: Apache-2.0

README

GraphQL Schema

This package contains schema of the Stateful GraphQL API.

Generate

The process of generating Go models from the schema works as follows:

  1. Download schema represented as an Introspection Query result: go run ./cmd/gqltool/main.go --api-url=[YOUR STAGING URL] > ./internal/client/graphql/schema/introspection_query_result.json
  2. Convert it to GraphQL Schema Definition Language using graphql-js:
    $ pushd ./internal/client/graphql/schema
    $ npm run convert
    $ popd
    
  3. Generate Go stubs: make generate

Resources

[1] Three ways to represent your GraphQL schema

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL