minimal requirements, one schema, readme update

This commit is contained in:
2021-06-30 14:46:19 +03:00
parent 4f2f4187fe
commit 378f4b61b1
18 changed files with 389 additions and 456 deletions

View File

@@ -1,46 +0,0 @@
type Role {
id: Int!
name: String!
}
type User {
createdAt: DateTime!
email: String
emailConfirmed: Boolean
id: Int!
muted: Boolean
rating: Int
roles: [Role!]!
updatedAt: DateTime!
username: String
userpic: String
userpicId: String
wasOnlineAt: DateTime
}
input registerUserInput {
email: String!
username: String!
password: String!
}
type signInPayload {
status: Boolean!
error: String
token: String
}
type signOutPayload {
status: Boolean!
error: String
}
type Query{
signIn(id: Int!, password: String!): signInPayload!
signOut: signOutPayload!
}
type Mutation{
registerUser(input: registerUserInput!): User!
}

View File

@@ -1,2 +0,0 @@
scalar DateTime