34 lines
532 B
GraphQL
34 lines
532 B
GraphQL
|
query Users {
|
||
|
users {
|
||
|
name
|
||
|
repositories {
|
||
|
id
|
||
|
name
|
||
|
url
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query UserByName($name: String!) {
|
||
|
userByName(name: $name) {
|
||
|
repositories {
|
||
|
name
|
||
|
url
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query VerifyLogin($username: String!, $password: String!) {
|
||
|
verifyLogin(username: $username, password: $password)
|
||
|
}
|
||
|
|
||
|
mutation CreateRepository($user: String!, $name: String!) {
|
||
|
createRepository(input: { user: $user, name: $name }) {
|
||
|
id
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation DeleteRepository($id: UUID!) {
|
||
|
deleteRepository(id: $id)
|
||
|
}
|