change option name
diff --git a/s2graphql/src/main/scala/org/apache/s2graph/graphql/GraphQLServer.scala b/s2graphql/src/main/scala/org/apache/s2graph/graphql/GraphQLServer.scala
index 3b61085..b650714 100644
--- a/s2graphql/src/main/scala/org/apache/s2graph/graphql/GraphQLServer.scala
+++ b/s2graphql/src/main/scala/org/apache/s2graph/graphql/GraphQLServer.scala
@@ -58,7 +58,7 @@
val config = ConfigFactory.load()
val s2graph = new S2Graph(config)
val schemaCacheTTL = Try(config.getInt("schemaCacheTTL")).getOrElse(3000)
- val withAdmin = Try(config.getBoolean("schemaCacheTTL")).getOrElse(false)
+ val enableMutation = Try(config.getBoolean("enableMutation")).getOrElse(false)
val schemaConfig = ConfigFactory.parseMap(Map(
SafeUpdateCache.MaxSizeKey -> 1, SafeUpdateCache.TtlKey -> schemaCacheTTL
@@ -81,7 +81,7 @@
val schemaCacheKey = className + "s2Schema"
- schemaCache.put(schemaCacheKey, createNewSchema(withAdmin))
+ schemaCache.put(schemaCacheKey, createNewSchema(enableMutation))
/**
* In development mode(schemaCacheTTL = 1),
@@ -127,7 +127,7 @@
import GraphRepository._
val (schemaDef, s2Repository) =
- schemaCache.withCache(schemaCacheKey, broadcast = false, onEvict = onEvictSchema)(createNewSchema(withAdmin))
+ schemaCache.withCache(schemaCacheKey, broadcast = false, onEvict = onEvictSchema)(createNewSchema(enableMutation))
val resolver: DeferredResolver[GraphRepository] = DeferredResolver.fetchers(vertexFetcher, edgeFetcher)