You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2020/09/16 14:39:26 UTC
[sling-org-apache-sling-graphql-core] 01/02: SLING-9724 - Validate
queries before persisting
This is an automated email from the ASF dual-hosted git repository.
radu pushed a commit to branch issue/SLING-9724
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-graphql-core.git
commit 8caec30a01b73c413fa4ddfe6ad9b836e9efbd2a
Author: Radu Cotescu <co...@adobe.com>
AuthorDate: Wed Sep 16 16:30:29 2020 +0200
SLING-9724 - Validate queries before persisting
* updated to graphql-java 15 for the new graphql.ParseAndValidate class
---
pom.xml | 2 +-
.../org/apache/sling/graphql/core/scalars/SlingScalarsProvider.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 9c52ff7..3e1cc03 100644
--- a/pom.xml
+++ b/pom.xml
@@ -135,7 +135,7 @@
<dependency>
<groupId>com.graphql-java</groupId>
<artifactId>graphql-java</artifactId>
- <version>14.0</version>
+ <version>15.0</version>
<scope>provided</scope>
</dependency>
<dependency>
diff --git a/src/main/java/org/apache/sling/graphql/core/scalars/SlingScalarsProvider.java b/src/main/java/org/apache/sling/graphql/core/scalars/SlingScalarsProvider.java
index 8ffde2e..a6771c6 100644
--- a/src/main/java/org/apache/sling/graphql/core/scalars/SlingScalarsProvider.java
+++ b/src/main/java/org/apache/sling/graphql/core/scalars/SlingScalarsProvider.java
@@ -57,7 +57,7 @@ public class SlingScalarsProvider {
private GraphQLScalarType getScalar(String name) {
// Ignore standard scalars
- if(ScalarInfo.STANDARD_SCALAR_DEFINITIONS.containsKey(name)) {
+ if(ScalarInfo.isGraphqlSpecifiedScalar(name)) {
return null;
}