예제 #1
0
        public AppGraphQuery(ISampleGrainClient sampleClient)
        {
            Name = "AppQueries";

            Field <SampleDataGraphType>("sample",
                                        arguments: new QueryArguments(new QueryArgument <StringGraphType>
            {
                Name = "id"
            }),
                                        resolve: ctx => sampleClient.Get(ctx.Arguments["id"].ToString())
                                        );
        }
예제 #2
0
 public SampleDataController(
     ISampleGrainClient client
     )
 {
     _client = client;
 }