示例#1
0
        public AccountQuery(WealthDataClient data)
        {
            Name = "Query";

            Field <AccountType>("account",
                                arguments: new QueryArguments(
                                    new QueryArgument <NonNullGraphType <ULongGraphType> > {
                Name = "id", Description = "id of the account"
            }
                                    ),
                                resolve: context => data.GetAccount(context.GetArgument <ulong>("id"))
                                );
        }
 public async Task <Account> Get(ulong id)
 {
     return(await _dataClient.GetAccount(id));
 }