Schemas for Subs

This commit is contained in:
Gogs
2021-07-25 01:56:18 +02:00
parent 31d385d3d4
commit 644f3697c7
2 changed files with 26 additions and 9 deletions
+11 -4
View File
@@ -1,4 +1,5 @@
title = "CMS" ==
title = "CMS"
==
<?php
use Cms\Classes\Theme;
use Cms\Classes\Content;
@@ -11,6 +12,12 @@ function resolveCmsContent($root, $args) {
return Content::loadCached($theme, $args['name']);
}
?>
== # Content extend type Query { cmsContent(name: String!): CmsContent! } type CmsContent { fileName: String! content:
String markup: String parsedMarkup: String } # CMS-wide types # Backend\Models\User type BackendUser { id: ID! }
#System\Models\File type SystemFile { id: ID path: String title: String description: String }
==
# Content
extend type Query { cmsContent(name: String!): CmsContent! }
type CmsContent { fileName: String! content: String markup: String parsedMarkup: String }
# CMS-wide types
# Backend\Models\User
type BackendUser { id: ID! }
#System\Models\File
type SystemFile { id: ID path: String title: String description: String }