Init
This commit is contained in:
commit
e82f35da2a
78 changed files with 10821 additions and 0 deletions
37
frontend/schema.graphql
Normal file
37
frontend/schema.graphql
Normal file
|
@ -0,0 +1,37 @@
|
|||
input CreateRepositoryInput {
|
||||
user: String!
|
||||
name: String!
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
createRepository(input: CreateRepositoryInput!): Repository!
|
||||
deleteRepository(id: UUID!): Boolean!
|
||||
}
|
||||
|
||||
type Query {
|
||||
ping: String!
|
||||
verifyLogin(username: String!, password: String!): Boolean!
|
||||
user(id: UUID!): User!
|
||||
userByName(name: String!): User!
|
||||
users: [User!]!
|
||||
repository(id: UUID!): Repository!
|
||||
repositories: [Repository!]!
|
||||
}
|
||||
|
||||
type Repository {
|
||||
id: UUID!
|
||||
user: User!
|
||||
name: String!
|
||||
url(scheme: Boolean): String!
|
||||
}
|
||||
|
||||
type User {
|
||||
id: UUID!
|
||||
name: String!
|
||||
repositories: [Repository!]!
|
||||
}
|
||||
|
||||
"""
|
||||
UUID encoded as a string
|
||||
"""
|
||||
scalar UUID
|
Loading…
Add table
Add a link
Reference in a new issue