This commit is contained in:
Generated
+73
-7
@@ -54,6 +54,10 @@ type Query {
|
||||
collections: [Collection!]!
|
||||
node(id: String): Node!
|
||||
document(collection: String, relativePath: String): DocumentNode!
|
||||
user(relativePath: String): User!
|
||||
authenticate(sub: String!, password: String!): UserUsers
|
||||
authorize: UserUsers
|
||||
userConnection(before: String, after: String, first: Float, last: Float, sort: String, filter: UserFilter): UserConnection!
|
||||
post(relativePath: String): Post!
|
||||
postConnection(before: String, after: String, first: Float, last: Float, sort: String, filter: PostFilter): PostConnection!
|
||||
page(relativePath: String): Page!
|
||||
@@ -63,6 +67,7 @@ type Query {
|
||||
}
|
||||
|
||||
input DocumentFilter {
|
||||
user: UserFilter
|
||||
post: PostFilter
|
||||
page: PageFilter
|
||||
theaterHomepage: TheaterHomepageFilter
|
||||
@@ -91,14 +96,22 @@ type Collection {
|
||||
documents(before: String, after: String, first: Float, last: Float, sort: String, filter: DocumentFilter, folder: String): DocumentConnection!
|
||||
}
|
||||
|
||||
union DocumentNode = Post | Page | TheaterHomepage | Folder
|
||||
union DocumentNode = User | Post | Page | TheaterHomepage | Folder
|
||||
|
||||
type Post implements Node & Document {
|
||||
title: String!
|
||||
date: String!
|
||||
excerpt: String!
|
||||
coverImage: String
|
||||
body: JSON!
|
||||
type UserUsersPassword {
|
||||
value: String!
|
||||
passwordChangeRequired: Boolean
|
||||
}
|
||||
|
||||
type UserUsers {
|
||||
username: String!
|
||||
name: String
|
||||
email: String
|
||||
password: UserUsersPassword!
|
||||
}
|
||||
|
||||
type User implements Node & Document {
|
||||
users: [UserUsers]
|
||||
id: ID!
|
||||
_sys: SystemInfo!
|
||||
_values: JSON!
|
||||
@@ -111,6 +124,38 @@ input StringFilter {
|
||||
in: [String]
|
||||
}
|
||||
|
||||
input UserUsersFilter {
|
||||
username: StringFilter
|
||||
name: StringFilter
|
||||
email: StringFilter
|
||||
}
|
||||
|
||||
input UserFilter {
|
||||
users: UserUsersFilter
|
||||
}
|
||||
|
||||
type UserConnectionEdges {
|
||||
cursor: String!
|
||||
node: User
|
||||
}
|
||||
|
||||
type UserConnection implements Connection {
|
||||
pageInfo: PageInfo!
|
||||
totalCount: Float!
|
||||
edges: [UserConnectionEdges]
|
||||
}
|
||||
|
||||
type Post implements Node & Document {
|
||||
title: String!
|
||||
date: String!
|
||||
excerpt: String!
|
||||
coverImage: String
|
||||
body: JSON!
|
||||
id: ID!
|
||||
_sys: SystemInfo!
|
||||
_values: JSON!
|
||||
}
|
||||
|
||||
input DatetimeFilter {
|
||||
after: String
|
||||
before: String
|
||||
@@ -387,6 +432,9 @@ type Mutation {
|
||||
deleteDocument(collection: String, relativePath: String!): DocumentNode!
|
||||
createDocument(collection: String, relativePath: String!, params: DocumentMutation!): DocumentNode!
|
||||
createFolder(collection: String, relativePath: String!): DocumentNode!
|
||||
updatePassword(password: String!): Boolean!
|
||||
updateUser(relativePath: String!, params: UserMutation!): User!
|
||||
createUser(relativePath: String!, params: UserMutation!): User!
|
||||
updatePost(relativePath: String!, params: PostMutation!): Post!
|
||||
createPost(relativePath: String!, params: PostMutation!): Post!
|
||||
updatePage(relativePath: String!, params: PageMutation!): Page!
|
||||
@@ -396,6 +444,7 @@ type Mutation {
|
||||
}
|
||||
|
||||
input DocumentUpdateMutation {
|
||||
user: UserMutation
|
||||
post: PostMutation
|
||||
page: PageMutation
|
||||
theaterHomepage: TheaterHomepageMutation
|
||||
@@ -403,11 +452,28 @@ input DocumentUpdateMutation {
|
||||
}
|
||||
|
||||
input DocumentMutation {
|
||||
user: UserMutation
|
||||
post: PostMutation
|
||||
page: PageMutation
|
||||
theaterHomepage: TheaterHomepageMutation
|
||||
}
|
||||
|
||||
input UserUsersPasswordMutation {
|
||||
value: String
|
||||
passwordChangeRequired: Boolean!
|
||||
}
|
||||
|
||||
input UserUsersMutation {
|
||||
username: String
|
||||
name: String
|
||||
email: String
|
||||
password: UserUsersPasswordMutation
|
||||
}
|
||||
|
||||
input UserMutation {
|
||||
users: [UserUsersMutation]
|
||||
}
|
||||
|
||||
input PostMutation {
|
||||
title: String
|
||||
date: String
|
||||
|
||||
Reference in New Issue
Block a user