private def parser()

in src/main/scala/GraphQLServer.scala [29:37]


  private def parser(content:String) = Stream.apply(QueryParser.parse(content))

  private def performQuery(doc:Document, variables:Option[Map[String,String]], tier:UserTier) =
    IO.fromFuture(
      IO {
        val context = GQLQueryContext(documentRepo, tier)
        //FIXME - add in variables here
        Executor.execute(inUseSchema, doc, middleware = permissions :: metrics :: Nil, userContext = context).map(_.asJson.noSpaces)
      }