Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            GraphQLServer server = new GraphQLServer();

            server.AddController(new CountryController());
            server.AddController(new PopulationController());
            server.Start();
        }
Exemplo n.º 2
0
 private static ClientContext DefaultClientContextFn(GraphQLServer x, HttpListenerRequest y) =>
 new ClientContext()
 {
     Authenticated = false, UserToken = ""
 };