Skip to content

Instantly share code, notes, and snippets.

import spray.json._
import scala.collection.immutable.{ListMap}
import scala.io.Source
trait SortedPrettyPrinter extends PrettyPrinter {
override protected def printObject(members: Map[String, JsValue], sb: java.lang.StringBuilder, indent: Int) {
sb.append("{\n")
printSeq(ListMap(members.toSeq.sortBy(_._1):_*), sb.append(",\n")) { m =>
using GraphQL;
using GraphQL.Execution;
using GraphQL.Http;
using GraphQL.Types;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace GraphQLConsole
{