gqlgen-graphql-tutorial

command module
v0.0.0-...-da75ab1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 11 Imported by: 0

README

gqlgen-graphql-tutorial

Mutations

register
xdg-open http://localhost:8080/
mutation register {
  register(
    input: {
      username: "user1", 
      email: "user1@gmail.com", 
      password: "user1234567890!", 
      confirmPassword: "user1234567890!", 
      firstName: "User", 
      lastName: "One"}
  ) {
    authToken {
      accessToken
    }
  }
}

expected result:

{
  "data": {
    "register": {
      "authToken": {
        "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NjU0NDQ3NzYsImp0aSI6IjIiLCJpYXQiOjE2NjQ4Mzk5NzYsImlzcyI6Im1lZXRtZXVwIn0.erk1xgejBMJd2k0DNQZEZ-SzN6RxO6U44Jz_75zHmzk"
      }
    }
  }
}

References

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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