evgen-app-front-template/regSchema.graphql

30 lines
524 B
GraphQL
Raw Normal View History

mutation auth($username:String!, $password:String!){
tokenAuth(username:$username, password:$password){
token
}
}
mutation register($username:String!, $password:String!){
2021-04-24 13:58:03 +03:00
createUser(username:$username, password:$password){
ok
}
2021-04-24 13:58:03 +03:00
}
query getMaterials($token: String){
materialsByUser(token:$token){
content
id
}
}
mutation UpdateDoc($id:ID, $content:String){
updateDoc(content:$content, id:$id){
ok
}
}
query getMaterialByID($id:ID!){
material(id:$id){
content
}
}