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/06/04 08:31:18 UTC
[sling-whiteboard] branch master updated: Clarify repoinit example
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 96062cc Clarify repoinit example
96062cc is described below
commit 96062cc9fc1f8f673e897b4e31768f1f8b4dcd3e
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Jun 4 10:30:59 2021 +0200
Clarify repoinit example
---
remote-content-api/sample-graphql-api/README.md | 27 ++++++++++++++-----------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/remote-content-api/sample-graphql-api/README.md b/remote-content-api/sample-graphql-api/README.md
index 7041383..acda76e 100644
--- a/remote-content-api/sample-graphql-api/README.md
+++ b/remote-content-api/sample-graphql-api/README.md
@@ -61,19 +61,22 @@ we don't really care about the details of these node types besides their names.
}
}
+ # we probably wouldn't use repoinit in this way - this
+ # is just an example showing how to use a command pattern
+ # via GraphQL mutations
mutation {
- command(
- lang:"repoinit",
- script:"""
- # comments work here
- set properties on /open-for-all
- set title to "Look, I changed the title again!"
- end
- """)
- {
- success
- output
- }
+ command(
+ lang:"repoinit",
+ script:"""
+ # comments work here
+ set properties on /open-for-all
+ set title to "Look, I changed the title again!"
+ end
+ """)
+ {
+ success
+ output
+ }
}
{