wip: redis, sqlalchemy, structured, etc
This commit is contained in:
24
schema.auth.graphql
Normal file
24
schema.auth.graphql
Normal 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!
|
||||
}
|
||||
Reference in New Issue
Block a user