UNPKG

alinea

Version:
59 lines (57 loc) 1.11 kB
import "./chunks/chunk-NZLE2WMY.js"; // src/query.ts import { Entry } from "alinea/core/Entry"; import { snippet } from "alinea/core/pages/Snippet"; var id = Entry.id; var title = Entry.title; var type = Entry.type; var index = Entry.index; var workspace = Entry.workspace; var root = Entry.root; var status = Entry.status; var parentId = Entry.parentId; var locale = Entry.locale; var path = Entry.path; var url = Entry.url; function children(query) { return { edge: "children", ...query }; } function parents(query) { return { edge: "parents", ...query }; } function translations(query) { return { edge: "translations", ...query }; } function siblings(query) { return { edge: "siblings", ...query }; } function parent(query) { return { edge: "parent", ...query }; } function next(query) { return { edge: "next", ...query }; } function previous(query) { return { edge: "previous", ...query }; } export { children, id, index, locale, next, parent, parentId, parents, path, previous, root, siblings, snippet, status, title, translations, type, url, workspace };