-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
48 lines (41 loc) · 873 Bytes
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type User {
id: ID!
createdAt: DateTime!
updatedAt: DateTime!
version: Int!
username: String!
email: String!
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
type SignInResult {
id: ID!
createdAt: DateTime!
updatedAt: DateTime!
version: Int!
username: String!
email: String!
token: String!
}
type Query {
users: [User!]!
user(username: String!): User!
}
type Mutation {
signUp(input: SignUpInput!): User!
signIn(input: SignInInput!): SignInResult!
}
input SignUpInput {
username: String!
email: String!
password: String!
}
input SignInInput {
username: String!
password: String!
}