-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.gql
50 lines (42 loc) · 934 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
39
40
41
42
43
44
45
46
47
48
49
50
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type User {
_id: ID!
username: String!
email: String!
password: String!
}
type RegisterUserResponse {
access_token: String!
refresh_token: String!
}
type Investment {
_id: ID!
title: String!
description: String!
}
type Query {
findAll: [User!]!
getUserInfo: [User!]!
getInvestment: [Investment!]!
}
type Mutation {
registerLocal(input: CreateUserInput!): RegisterUserResponse!
logout: User!
refreshTokens(loginUserInput: LoginUserInput!): User!
createInvestment(input: CreateInvestmentInput!): Investment!
}
input CreateUserInput {
username: String!
email: String!
password: String!
}
input LoginUserInput {
email: String!
password: String!
}
input CreateInvestmentInput {
title: String!
description: String!
}