12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- # ===============================================
- # 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(
- content: String!
- description: String!
- editor: String!
- isPublished: Boolean!
- isPrivate: Boolean!
- locale: String!
- path: String!
- publishEndDate: Date
- publishStartDate: Date
- tags: [String]!
- title: String!
- ): PageResponse
- update(
- id: Int!
- content: String
- description: String
- editor: String
- isPrivate: Boolean
- isPublished: Boolean
- locale: String
- path: String
- publishEndDate: Date
- publishStartDate: Date
- tags: [String]
- title: String
- ): PageResponse
- 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!
- }
|