2018-05-20 22:50:51 +00:00
|
|
|
# ===============================================
|
|
|
|
# PAGES
|
|
|
|
# ===============================================
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
pages: PageQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
pages: PageMutation
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type PageQuery {
|
|
|
|
list(
|
|
|
|
filter: String
|
|
|
|
orderBy: String
|
|
|
|
): [PageMinimal]
|
|
|
|
|
|
|
|
single(
|
2018-07-22 04:29:39 +00:00
|
|
|
id: Int
|
|
|
|
path: String
|
|
|
|
locale: String
|
|
|
|
isPrivate: Boolean
|
2018-05-20 22:50:51 +00:00
|
|
|
): Page
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type PageMutation {
|
|
|
|
create(
|
2018-07-22 20:25:39 +00:00
|
|
|
content: String!
|
|
|
|
description: String!
|
|
|
|
editor: String!
|
2018-07-22 04:29:39 +00:00
|
|
|
isPublished: Boolean!
|
2018-07-22 20:25:39 +00:00
|
|
|
isPrivate: Boolean!
|
2018-07-22 04:29:39 +00:00
|
|
|
locale: String!
|
2018-05-20 22:50:51 +00:00
|
|
|
path: String!
|
|
|
|
publishEndDate: Date
|
|
|
|
publishStartDate: Date
|
2018-07-22 20:25:39 +00:00
|
|
|
tags: [String]!
|
2018-05-20 22:50:51 +00:00
|
|
|
title: String!
|
|
|
|
): PageResponse
|
|
|
|
|
|
|
|
update(
|
|
|
|
id: Int!
|
2018-07-22 20:25:39 +00:00
|
|
|
content: String
|
2018-07-22 04:29:39 +00:00
|
|
|
description: String
|
|
|
|
editor: String
|
|
|
|
isPublished: Boolean
|
|
|
|
locale: String
|
|
|
|
path: String
|
|
|
|
publishEndDate: Date
|
|
|
|
publishStartDate: Date
|
|
|
|
tags: [String]
|
|
|
|
title: String
|
2018-05-20 22:50:51 +00:00
|
|
|
): DefaultResponse
|
|
|
|
|
|
|
|
delete(
|
|
|
|
id: Int!
|
|
|
|
): DefaultResponse
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type PageResponse {
|
|
|
|
responseResult: ResponseStatus!
|
|
|
|
page: Page
|
|
|
|
}
|
|
|
|
|
|
|
|
type PageMinimal {
|
|
|
|
id: Int!
|
|
|
|
name: String!
|
|
|
|
userCount: Int
|
|
|
|
createdAt: Date!
|
|
|
|
updatedAt: Date!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Page {
|
|
|
|
id: Int!
|
|
|
|
name: String!
|
|
|
|
rights: [Right]
|
|
|
|
users: [User]
|
|
|
|
createdAt: Date!
|
|
|
|
updatedAt: Date!
|
|
|
|
}
|