277 lines
5.4 KiB
GraphQL
277 lines
5.4 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!
|
|
hasReferences: Boolean
|
|
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!
|
|
news(relativePath: String): News!
|
|
newsConnection(before: String, after: String, first: Float, last: Float, sort: String, filter: NewsFilter): NewsConnection!
|
|
videos(relativePath: String): Videos!
|
|
videosConnection(before: String, after: String, first: Float, last: Float, sort: String, filter: VideosFilter): VideosConnection!
|
|
}
|
|
|
|
input DocumentFilter {
|
|
news: NewsFilter
|
|
videos: VideosFilter
|
|
}
|
|
|
|
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 = News | Videos | Folder
|
|
|
|
type NewsGallery {
|
|
image: String
|
|
}
|
|
|
|
type News implements Node & Document {
|
|
locale: String
|
|
title: String!
|
|
date: String!
|
|
slug: String
|
|
place: String
|
|
country: String
|
|
city: String
|
|
thumbnail: String
|
|
thumbnail_square: String
|
|
tags: [String]
|
|
gallery: [NewsGallery]
|
|
youtube: String
|
|
draft: Boolean
|
|
body: JSON
|
|
id: ID!
|
|
_sys: SystemInfo!
|
|
_values: JSON!
|
|
}
|
|
|
|
input StringFilter {
|
|
startsWith: String
|
|
eq: String
|
|
exists: Boolean
|
|
in: [String]
|
|
}
|
|
|
|
input DatetimeFilter {
|
|
after: String
|
|
before: String
|
|
eq: String
|
|
exists: Boolean
|
|
in: [String]
|
|
}
|
|
|
|
input ImageFilter {
|
|
startsWith: String
|
|
eq: String
|
|
exists: Boolean
|
|
in: [String]
|
|
}
|
|
|
|
input NewsGalleryFilter {
|
|
image: ImageFilter
|
|
}
|
|
|
|
input BooleanFilter {
|
|
eq: Boolean
|
|
exists: Boolean
|
|
}
|
|
|
|
input RichTextFilter {
|
|
startsWith: String
|
|
eq: String
|
|
exists: Boolean
|
|
}
|
|
|
|
input NewsFilter {
|
|
locale: StringFilter
|
|
title: StringFilter
|
|
date: DatetimeFilter
|
|
slug: StringFilter
|
|
place: StringFilter
|
|
country: StringFilter
|
|
city: StringFilter
|
|
thumbnail: ImageFilter
|
|
thumbnail_square: ImageFilter
|
|
tags: StringFilter
|
|
gallery: NewsGalleryFilter
|
|
youtube: StringFilter
|
|
draft: BooleanFilter
|
|
body: RichTextFilter
|
|
}
|
|
|
|
type NewsConnectionEdges {
|
|
cursor: String!
|
|
node: News
|
|
}
|
|
|
|
type NewsConnection implements Connection {
|
|
pageInfo: PageInfo!
|
|
totalCount: Float!
|
|
edges: [NewsConnectionEdges]
|
|
}
|
|
|
|
type Videos implements Node & Document {
|
|
locale: String
|
|
title: String!
|
|
video_yt: String
|
|
date: String!
|
|
slug: String
|
|
description: String
|
|
thumbnail: String
|
|
draft: Boolean
|
|
id: ID!
|
|
_sys: SystemInfo!
|
|
_values: JSON!
|
|
}
|
|
|
|
input VideosFilter {
|
|
locale: StringFilter
|
|
title: StringFilter
|
|
video_yt: StringFilter
|
|
date: DatetimeFilter
|
|
slug: StringFilter
|
|
description: StringFilter
|
|
thumbnail: StringFilter
|
|
draft: BooleanFilter
|
|
}
|
|
|
|
type VideosConnectionEdges {
|
|
cursor: String!
|
|
node: Videos
|
|
}
|
|
|
|
type VideosConnection implements Connection {
|
|
pageInfo: PageInfo!
|
|
totalCount: Float!
|
|
edges: [VideosConnectionEdges]
|
|
}
|
|
|
|
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!
|
|
createFolder(collection: String, relativePath: String!): DocumentNode!
|
|
updateNews(relativePath: String!, params: NewsMutation!): News!
|
|
createNews(relativePath: String!, params: NewsMutation!): News!
|
|
updateVideos(relativePath: String!, params: VideosMutation!): Videos!
|
|
createVideos(relativePath: String!, params: VideosMutation!): Videos!
|
|
}
|
|
|
|
input DocumentUpdateMutation {
|
|
news: NewsMutation
|
|
videos: VideosMutation
|
|
relativePath: String
|
|
}
|
|
|
|
input DocumentMutation {
|
|
news: NewsMutation
|
|
videos: VideosMutation
|
|
}
|
|
|
|
input NewsGalleryMutation {
|
|
image: String
|
|
}
|
|
|
|
input NewsMutation {
|
|
locale: String
|
|
title: String
|
|
date: String
|
|
slug: String
|
|
place: String
|
|
country: String
|
|
city: String
|
|
thumbnail: String
|
|
thumbnail_square: String
|
|
tags: [String]
|
|
gallery: [NewsGalleryMutation]
|
|
youtube: String
|
|
draft: Boolean
|
|
body: JSON
|
|
}
|
|
|
|
input VideosMutation {
|
|
locale: String
|
|
title: String
|
|
video_yt: String
|
|
date: String
|
|
slug: String
|
|
description: String
|
|
thumbnail: String
|
|
draft: Boolean
|
|
}
|
|
|
|
schema {
|
|
query: Query
|
|
mutation: Mutation
|
|
}
|