153 lines
3.0 KiB
GraphQL
153 lines
3.0 KiB
GraphQL
# DO NOT MODIFY THIS FILE. This file is automatically generated by Tina
|
|||
|
|
"""References another document, used as a foreign key"""
|
||
|
|
scalar Reference
|
||
|
|
|
||
|
|
""""""
|
||
|
|
scalar JSON
|
||
|
|
|
||
|
|
type SystemInfo {
|
||
|
|
filename: String!
|
||
|
|
title: String
|
||
|
|
basename: String!
|
||
|
|
breadcrumbs(excludeExtension: Boolean): [String!]!
|
||
|
|
path: String!
|
||
|
|
relativePath: String!
|
||
|
|
extension: String!
|
||
|
|
template: String!
|
||
|
|
collection: Collection!
|
||
|
|
}
|
||
|
|
|
||
|
|
type Folder {
|
||
|
|
name: String!
|
||
|
|
path: String!
|
||
|
|
}
|
||
|
|
|
||
|
|
type PageInfo {
|
||
|
|
hasPreviousPage: Boolean!
|
||
|
|
hasNextPage: Boolean!
|
||
|
|
startCursor: String!
|
||
|
|
endCursor: String!
|
||
|
|
}
|
||
|
|
|
||
|
|
""""""
|
||
|
|
interface Node {
|
||
|
|
id: ID!
|
||
|
|
}
|
||
|
|
|
||
|
|
""""""
|
||
|
|
interface Document {
|
||
|
|
id: ID!
|
||
|
|
_sys: SystemInfo
|
||
|
|
_values: JSON!
|
||
|
|
}
|
||
|
|
|
||
|
|
"""A relay-compliant pagination connection"""
|
||
|
|
interface Connection {
|
||
|
|
totalCount: Float!
|
||
|
|
pageInfo: PageInfo!
|
||
|
|
}
|
||
|
|
|
||
|
|
type Query {
|
||
|
|
getOptimizedQuery(queryString: String!): String
|
||
|
|
collection(collection: String): Collection!
|
||
|
|
collections: [Collection!]!
|
||
|
|
node(id: String): Node!
|
||
|
|
document(collection: String, relativePath: String): DocumentNode!
|
||
|
|
post(relativePath: String): Post!
|
||
|
|
postConnection(before: String, after: String, first: Float, last: Float, sort: String, filter: PostFilter): PostConnection!
|
||
|
|
}
|
||
|
|
|
||
|
|
input DocumentFilter {
|
||
|
|
post: PostFilter
|
||
|
|
}
|
||
|
|
|
||
|
|
type DocumentConnectionEdges {
|
||
|
|
cursor: String!
|
||
|
|
node: DocumentNode
|
||
|
|
}
|
||
|
|
|
||
|
|
type DocumentConnection implements Connection {
|
||
|
|
pageInfo: PageInfo!
|
||
|
|
totalCount: Float!
|
||
|
|
edges: [DocumentConnectionEdges]
|
||
|
|
}
|
||
|
|
|
||
|
|
type Collection {
|
||
|
|
name: String!
|
||
|
|
slug: String!
|
||
|
|
label: String
|
||
|
|
path: String!
|
||
|
|
format: String
|
||
|
|
matches: String
|
||
|
|
templates: [JSON]
|
||
|
|
fields: [JSON]
|
||
|
|
documents(before: String, after: String, first: Float, last: Float, sort: String, filter: DocumentFilter, folder: String): DocumentConnection!
|
||
|
|
}
|
||
|
|
|
||
|
|
union DocumentNode = Post | Folder
|
||
|
|
|
||
|
|
type Post implements Node & Document {
|
||
|
|
title: String!
|
||
|
|
body: JSON
|
||
|
|
id: ID!
|
||
|
|
_sys: SystemInfo!
|
||
|
|
_values: JSON!
|
||
|
|
}
|
||
|
|
|
||
|
|
input StringFilter {
|
||
|
|
startsWith: String
|
||
|
|
eq: String
|
||
|
|
exists: Boolean
|
||
|
|
in: [String]
|
||
|
|
}
|
||
|
|
|
||
|
|
input RichTextFilter {
|
||
|
|
startsWith: String
|
||
|
|
eq: String
|
||
|
|
exists: Boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
input PostFilter {
|
||
|
|
title: StringFilter
|
||
|
|
body: RichTextFilter
|
||
|
|
}
|
||
|
|
|
||
|
|
type PostConnectionEdges {
|
||
|
|
cursor: String!
|
||
|
|
node: Post
|
||
|
|
}
|
||
|
|
|
||
|
|
type PostConnection implements Connection {
|
||
|
|
pageInfo: PageInfo!
|
||
|
|
totalCount: Float!
|
||
|
|
edges: [PostConnectionEdges]
|
||
|
|
}
|
||
|
|
|
||
|
|
type Mutation {
|
||
|
|
addPendingDocument(collection: String!, relativePath: String!, template: String): DocumentNode!
|
||
|
|
updateDocument(collection: String, relativePath: String!, params: DocumentUpdateMutation!): DocumentNode!
|
||
|
|
deleteDocument(collection: String, relativePath: String!): DocumentNode!
|
||
|
|
createDocument(collection: String, relativePath: String!, params: DocumentMutation!): DocumentNode!
|
||
|
|
updatePost(relativePath: String!, params: PostMutation!): Post!
|
||
|
|
createPost(relativePath: String!, params: PostMutation!): Post!
|
||
|
|
}
|
||
|
|
|
||
|
|
input DocumentUpdateMutation {
|
||
|
|
post: PostMutation
|
||
|
|
relativePath: String
|
||
|
|
}
|
||
|
|
|
||
|
|
input DocumentMutation {
|
||
|
|
post: PostMutation
|
||
|
|
}
|
||
|
|
|
||
|
|
input PostMutation {
|
||
|
|
title: String
|
||
|
|
body: JSON
|
||
|
|
}
|
||
|
|
|
||
|
|
schema {
|
||
|
|
query: Query
|
||
|
|
mutation: Mutation
|
||
|
|
}
|