-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
67 lines (58 loc) · 1.5 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
57
58
59
60
61
62
63
64
65
66
67
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
}
type ArticleContentGraphType {
contentType: String!
header: String!
id: Int!
position: Int!
}
type ArticleFileGraphType {
articleFileId: Int!
fileId: String!
fileUsage: String
filename: String!
imageHeight: Int
imageWidth: Int
mimetype: String!
url: String!
}
type ArticleGraphType {
author: AuthorGraphType!
categories: [CategoryGraphType!]!
contents: [ArticleContentGraphType!]!
files: [ArticleFileGraphType!]!
filesByUsage(usage: String!): [ArticleFileGraphType!]!
id: Int!
teaser: String
timeCreated: DateTime!
title: String!
}
type ArticleGraphTypePaginationResult {
cursor: String
items: [ArticleGraphType!]!
length: Int!
pageSize: Int!
}
type AuthorGraphType {
articles: [ArticleGraphType!]!
id: ID!
username: String!
}
type CategoryGraphType {
articles: [ArticleGraphType!]! @deprecated(reason: "It will be remove or changed in future update")
category: String!
id: ID!
uniqueName: String
}
type Query {
articleById(article: Int!): ArticleGraphType
articles(category: String, cursor: String, size: Int! = 5): ArticleGraphTypePaginationResult!
authors: [AuthorGraphType!]!
categories: [CategoryGraphType!]!
categoryById(category: Int!): CategoryGraphType
categoryByUniqueName(category: String!): CategoryGraphType
}
"Date with time (isoformat)"
scalar DateTime