-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.gql
38 lines (32 loc) · 797 Bytes
/
schema.gql
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
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
input CreateUserDto {
email: String!
name: String
password: String!
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
type LoginResponseDto {
accessToken: String!
user: UserEntity!
}
type Mutation {
createUser(createUserDto: CreateUserDto!): UserEntity!
login(createUserDto: CreateUserDto!): LoginResponseDto!
signup(createUserDto: CreateUserDto!): UserEntity!
}
type Query {
getAllUsers: [UserEntity!]!
}
type UserEntity {
createdAt: DateTime!
email: String!
id: ID!
name: String
password: String!
updatedAt: DateTime!
}