You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/07/05 15:58:58 UTC

[sling-whiteboard] branch master updated: spec tweaks

This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 09fee21  spec tweaks
09fee21 is described below

commit 09fee21b73b45c36e107c79315c0a26e7b96648f
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon Jul 5 17:58:54 2021 +0200

    spec tweaks
---
 sling-org-apache-sling-graphql-schema/README.md | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/sling-org-apache-sling-graphql-schema/README.md b/sling-org-apache-sling-graphql-schema/README.md
index 5cecfc2..d5ec5ca 100644
--- a/sling-org-apache-sling-graphql-schema/README.md
+++ b/sling-org-apache-sling-graphql-schema/README.md
@@ -18,7 +18,8 @@ This module also provides a `GraphQLSchemaServlet` that generates schemas by agg
 The result can be used directly by the Sling GraphQL Core module, which makes an internal Sling request
 to get the schema. Multiple instances of that servlet can be configured, each with specific servlet
 selection properties (selectors, extension etc.) along with a set of tags used to select which partials
-are included in a specific schema.
+are included in a specific schema. Or maybe one instance with a mapping of request selectors to schema
+aggregation parameters.
 
 With this mechanism, an OSGi bundle can provide both a partial schema and the Sling data fetching and
 processing services that go with it. This allows a GraphQL "API plane" (usually defined by a specific
@@ -32,14 +33,13 @@ points to one or several paths where partials are found in the bundle resources.
 
 A partial is a text file with a `.graphql.partial.txt` extension that has the following structure:
 
-    # The "org.apache.sling.*" comments in the partial are used by the schema assembler, which might
-    # impose constraints on their presence and values.
-    #
-    # org.apache.sling.partial.name: Folders and commands
-    # org.apache.sling.tags: folder, command, development, authoring
-    #
-    # The aggregated schema will include additional org.apache.sling.* comments to provide information
-    # on the aggregation process and help troubleshoot it.
+    # Front matter, similar to Markdown, ends with four dashes on a line within the first 50 lines.
+    partial.name: Folders and commands
+    tags: folder, command, development, authoring
+    ----
+    
+    # The aggregated schema will include org.apache.sling.* values in comments, to provide
+    # information on the aggregation process and help troubleshoot it.
 
     # If a partial contains a Query and/or Mutation statement, the schema assembler uses their
     # indentation to parse them without having to consider the full SDL syntax.