schema/

directory
v3.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0

README


runme: id: 01HF7BT3HAZ32WVAFYJ4N5BF0X version: v2.2

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
  1. 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