graph

package
v0.0.0-...-f501dc8 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 7 Imported by: 0

README

Graph

To start the graphql server go to the cmd/graphql directory and generate the graphql binary with go build. Then run

./graphql start --port=8080

and visit http://localhost:8080/

Here is an example query using the coinbase SDK:

query {
  coinbaseWallets {
    id,
    destinationTagName,
    swiftDepositInformation {
      bankName
    },
    sepaDepositInformation {
      bankName
    },
    destinationTagRegex
  }
}

Updating the Schema

To add new endpoints, add a json file to schema/model and run the generate script:

python3 generate.py

To re-generate a change to the schema:

$ gqlgen generate

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct{}

func (*Resolver) Mutation

func (r *Resolver) Mutation() generated.MutationResolver

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

Query returns generated.QueryResolver implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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