Categorygithub.com/jiuxia211/GraphQL-demo
modulepackage
0.0.0-20240713190154-9bafa205b936
Repository: https://github.com/jiuxia211/graphql-demo.git
Documentation: pkg.go.dev

# README

本项目使用GitHub - 99designs/gqlgen: go generate based graphql server library

参考GraphQL

query getUser {
  user(id: "1000"){
    id
    username
    email
  }
}
query getTask {
  task(id:"1000"){
    title
    content
    status
  }
}

query getTasks {
  tasks{
    title
    content
  }
}

mutation createTask {
  createTask(title: "test title", content: "test content", status: true) {
    id
    title
    content
    status
  }
}

mutation updateTask {
  updateTask(id:"1000" title: "test title updated", content: "test content updated", status: true) {
    id
    title
    content
    status
  }
}

mutation register {
  register(userName: "jiuxia211", password: "123456", email: "[email protected]") {
    id
    username
  }
}

mutation login {
  login(userName: "jiuxia211", password: "123456") {
    username
    token
  }
}

# Packages

No description provided by the author
No description provided by the author
No description provided by the author