This is an automated email from the ASF dual-hosted git repository.
radu pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-graphql-core.git
The following commit(s) were added to refs/heads/master by this push:
new 90f5798 SLING-9813 - Remove scripted SlingDataFetcher support
90f5798 is described below
commit 90f579888ed3450a625e7bdbbbbf9b7d599f14b6
Author: kozmaadrian <[email protected]>
AuthorDate: Mon Oct 12 18:25:41 2020 +0200
SLING-9813 - Remove scripted SlingDataFetcher support
Co-authored-by: Adrian Kozma <[email protected]>
---
README.md | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/README.md b/README.md
index f71a423..2cf4da5 100644
--- a/README.md
+++ b/README.md
@@ -105,33 +105,6 @@ which have Java package names that start with
`org.apache.sling`.
The `<options>` and `<source>` arguments of the directive can be used by the
`SlingDataFetcher` services to influence their behavior.
-<<<<<<< HEAD
-=======
-### Scripted SlingDataFetchers
-
-Besides Java, `SlingDataFetcher` scripts can be written in any scripting
language that supported by the Sling instance's configuration.
-
-Here's an example from the test code. The schema contains the following
statement:
-
- scriptedFetcher (testing : String) : Test @fetcher(name:"scripted/example")
-
-And here's the data fetcher code:
-
-```javascript
-var result = {
- boolValue: true,
- resourcePath: "From the test script: " + resource.path,
- testingArgument: environment.getArgument("testing"),
- anotherValue: 450 + 1
-};
-
-result;
-```
-
-The data fetcher provider then looks for a script that handles the
`graphql/fetchers/scripted/example` resource type with a `fetcher`script name.
`graphql/fetchers`is a prefix (hardcoded for now) and `scripted/example` comes
from the above schema's `@fetcher` directive.
-
-In that test, the `/graphql/fetchers/scripted/example/fetcher.js` shown above
resolves with those requirements, it is executed to retrieve the requested
data. That execution happens with a context consisting of the current
`SlingDataFetcherEnvironment` under the `environment` key, and the current
Sling Resource under the `resource` key, both used in this test script.
-
## SlingTypeResolver selection with Schema Directives
The GraphQL schemas used by this module can be enhanced using