Files
blog-ahmza-com/tina/__generated__/schema.gql
T

195 lines
4.0 KiB
GraphQL
Raw Normal View History

2023-11-10 22:56:48 +00:00
# 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!
2023-11-11 01:27:05 +00:00
products(relativePath: String): Products!
productsConnection(before: String, after: String, first: Float, last: Float, sort: String, filter: ProductsFilter): ProductsConnection!
2023-11-10 22:56:48 +00:00
}
input DocumentFilter {
post: PostFilter
2023-11-11 01:27:05 +00:00
products: ProductsFilter
2023-11-10 22:56:48 +00:00
}
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!
}
2023-11-11 01:27:05 +00:00
union DocumentNode = Post | Products | Folder
2023-11-10 22:56:48 +00:00
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]
}
2023-11-11 01:27:05 +00:00
type Products implements Node & Document {
2023-11-14 00:00:10 +00:00
title: String!
code: String!
image: String
2023-11-11 01:27:05 +00:00
description: JSON
id: ID!
_sys: SystemInfo!
_values: JSON!
}
input ProductsFilter {
2023-11-14 00:00:10 +00:00
title: StringFilter
code: StringFilter
image: StringFilter
2023-11-11 01:27:05 +00:00
description: RichTextFilter
}
type ProductsConnectionEdges {
cursor: String!
node: Products
}
type ProductsConnection implements Connection {
pageInfo: PageInfo!
totalCount: Float!
edges: [ProductsConnectionEdges]
}
2023-11-10 22:56:48 +00:00
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!
2023-11-11 01:27:05 +00:00
updateProducts(relativePath: String!, params: ProductsMutation!): Products!
createProducts(relativePath: String!, params: ProductsMutation!): Products!
2023-11-10 22:56:48 +00:00
}
input DocumentUpdateMutation {
post: PostMutation
2023-11-11 01:27:05 +00:00
products: ProductsMutation
2023-11-10 22:56:48 +00:00
relativePath: String
}
input DocumentMutation {
post: PostMutation
2023-11-11 01:27:05 +00:00
products: ProductsMutation
2023-11-10 22:56:48 +00:00
}
input PostMutation {
title: String
body: JSON
}
2023-11-11 01:27:05 +00:00
input ProductsMutation {
2023-11-14 00:00:10 +00:00
title: String
code: String
image: String
2023-11-11 01:27:05 +00:00
description: JSON
}
2023-11-10 22:56:48 +00:00
schema {
query: Query
mutation: Mutation
}