Repository: incubator-s2graph
Updated Branches:
  refs/heads/master c30531bcd -> 00e75f769


filterNot JsNull instead of null.


Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/9435aa54
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/9435aa54
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/9435aa54

Branch: refs/heads/master
Commit: 9435aa540cb15bfc6a94a452a4a6b24854b8d166
Parents: c30531b
Author: DO YUNG YOON <[email protected]>
Authored: Thu Jun 21 15:22:43 2018 +0900
Committer: DO YUNG YOON <[email protected]>
Committed: Thu Jun 21 15:22:43 2018 +0900

----------------------------------------------------------------------
 .../src/main/scala/org/apache/s2graph/graphql/HttpServer.scala   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/9435aa54/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala
----------------------------------------------------------------------
diff --git 
a/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala 
b/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala
index 755d185..65ff348 100644
--- a/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala
+++ b/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala
@@ -80,8 +80,8 @@ object Server extends App {
           val fields = body.asJsObject.fields
 
           val query = fields.get("query").map(js => js.convertTo[String])
-          val operationName = fields.get("operationName").filterNot(_ == 
null).map(_.convertTo[String])
-          val variables = fields.get("variables").filterNot(_ == null)
+          val operationName = fields.get("operationName").filterNot(_ == 
JsNull).map(_.convertTo[String])
+          val variables = fields.get("variables").filterNot(_ == JsNull)
 
           query.map(QueryParser.parse(_)) match {
             case None ⇒ complete(StatusCodes.BadRequest -> 
GraphQLServer.formatError("No query to execute"))

Reply via email to