mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
1.5 KiB
92 lines
1.5 KiB
# ===============================================
|
|
# PAGES
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
pages: PageQuery
|
|
}
|
|
|
|
extend type Mutation {
|
|
pages: PageMutation
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# QUERIES
|
|
# -----------------------------------------------
|
|
|
|
type PageQuery {
|
|
list(
|
|
filter: String
|
|
orderBy: String
|
|
): [PageMinimal]
|
|
|
|
single(
|
|
id: Int
|
|
path: String
|
|
locale: String
|
|
isPrivate: Boolean
|
|
): Page
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# MUTATIONS
|
|
# -----------------------------------------------
|
|
|
|
type PageMutation {
|
|
create(
|
|
description: String
|
|
editor: String
|
|
isPublished: Boolean!
|
|
isPrivate: Boolean
|
|
locale: String!
|
|
path: String!
|
|
publishEndDate: Date
|
|
publishStartDate: Date
|
|
tags: [String]
|
|
title: String!
|
|
): PageResponse
|
|
|
|
update(
|
|
id: Int!
|
|
description: String
|
|
editor: String
|
|
isPublished: Boolean
|
|
locale: String
|
|
path: String
|
|
publishEndDate: Date
|
|
publishStartDate: Date
|
|
tags: [String]
|
|
title: String
|
|
): 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!
|
|
}
|