wip: redis, sqlalchemy, structured, etc

This commit is contained in:
2021-06-28 12:08:09 +03:00
parent 133e1cd490
commit 9f01572557
37 changed files with 1297 additions and 62 deletions

24
schema.auth.graphql Normal file
View File

@@ -0,0 +1,24 @@
type User{
id: ID!
name: String!
phone: String
age: Int
}
input CreateUserInput{
password: String!
name: String!
phone: String
age: Int
}
type Query{
user(id: ID!): User!
login(id: ID!,password: String!): String!
logout(id: ID!): Boolean!
}
type Mutation{
register(create: CraeteUserInput): User!
}