-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
56 lines (42 loc) · 1.33 KB
/
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
49
50
51
52
53
54
55
56
# import User, Message from "./generated/prisma.graphql"
# import UserSettings, SellerSettings from "./generated/prisma.graphql"
# import UserInfo, SellerInfo from "./generated/prisma.graphql"
# import MessageCreateInput from "./generated/prisma.graphql"
# import SellerInfoCreateInput, SellerInfo from "./generated/prisma.graphql"
# import Query.users from "./generated/prisma.graphql"
# import Query.connections from "./generated/prisma.graphql"
# import Query.messages from "./generated/prisma.graphql"
# import Mutation.updateUser from "./generated/prisma.graphql"
# import Mutation.deleteUser from "./generated/prisma.graphql"
# import Mutation.createMessage from "./generated/prisma.graphql"
# import Mutation.createSellerInfo from "./generated/prisma.graphql"
# import Mutation.createConnection from "./generated/prisma.graphql"
type Query {
meUser: User
}
type Mutation {
refreshToken: RefreshTokenPayload!
userSignup(
name: String!,
email: String!,
isSeller: Boolean!,
password: String!,
): UserAuthPayload!
userLogin(email: String!, password: String!): UserLoginResponse!
}
type UserLoginResponse {
payload: UserAuthPayload
error: Error
}
type RefreshTokenPayload {
token: String!
userId: String!
}
type UserAuthPayload {
token: String!
user: User!
}
type Error {
field: String!
msg: String!
}