-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.gql
49 lines (40 loc) · 912 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
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
# The javascript `Date` as string. Type represents date and time as the ISO Date string.
scalar DateTime
type Mutation {
addProfile(profile: ProfileInput!): Profile!
}
# Mongo object id scalar type
scalar ObjectId
type Profile {
id: ObjectId!
created: DateTime!
updated: DateTime!
name: String!
description: String
}
input ProfileInput {
name: String!
description: String
}
enum ProfileSortField {
id
name
created
updated
}
input ProfileSortInput {
field: ProfileSortField!
direction: SortDirection!
}
type Query {
profiles(skip: Int = 0, take: Int = 25, sort: [ProfileSortInput!] = []): [Profile!]!
profile(name: String!): Profile!
}
enum SortDirection {
ASC
DESC
}