graphql_template

command module
v0.0.0-...-7d7365f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 0 Imported by: 0

README

graphQL_template

graphQL_template golang

Chi + 99designs/gqlgen

tree
.
├── cmd
│   └── main.go
├── configs
│   ├── config.yaml
│   └── gqlgen.yml
├── gen.go
├── go.mod
├── go.sum
├── internal
│   ├── conf
│   │   └── config.go
│   ├── generated
│   │   ├── generated.go
│   │   ├── models_gen.go
│   │   ├── README.md
│   │   └── resolver.go
│   ├── graphql
│   │   ├── common
│   │   │   └── common.graphql
│   │   └── user
│   │       └── auth.graphql
│   ├── middlewares
│   │   ├── auth.go
│   │   ├── context.go
│   │   └── cors.go
│   ├── pkg
│   │   ├── enum
│   │   │   ├── auth.go
│   │   │   └── middleware.go
│   │   └── models
│   │       └── middleware.go
│   ├── resolvers
│   │   ├── resolver.go
│   │   └── user.go
│   ├── storage
│   │   ├── interface.go
│   │   └── simple
│   │       └── simple.go
│   └── utils
│       ├── base.go
│       ├── jwt.go
│       └── logger.go
├── LICENSE
├── README.md
└── tools.go
example payload
# Welcome to GraphiQL
#
# GraphiQL is an in-browser tool for writing, validating, and
# testing GraphQL queries.
#
# Type queries into this side of the screen, and you will see intelligent
# typeaheads aware of the current GraphQL type schema and live syntax and
# validation errors highlighted within the text.
#
# GraphQL queries typically start with a "{" character. Lines that start
# with a # are ignored.
#
# An example GraphQL query might look like:
#
#     {
#       field(arg: "value") {
#         subField
#       }
#     }
#
# Keyboard shortcuts:
#
#  Prettify Query:  Shift-Ctrl-P (or press the prettify button above)
#
#     Merge Query:  Shift-Ctrl-M (or press the merge button above)
#
#       Run Query:  Ctrl-Enter (or press the play button above)
#
#   Auto Complete:  Ctrl-Space (or just start typing)
#


query captcha {
  captcha{
    captchaId
    base64Captcha
  }
}

query userInfo{
  user {
    role
    account
    accountId
    accountName
  }
}

mutation registry {
  registry(input: {
    name: "dollarkiller",
    account: "xxx@xxx.com",
    password:"123456",
    captchaID: "JA6A2L",
    captchaCode: "tnka"
  })
}


mutation login {
  loginByPassword(input: {account:"xxx@xxx.com",password:"123456",captchaID: "0BW0PS",captchaCode:"hk5w"}) {
    userID
    accessTokenString
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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