public async Task <AccountWithUsers> GetWithUserList(ulong id) { var account = new AccountWithUsers(); account.Account = await _dataClient.GetAccount(id); account.Users = await _dataClient.GetAccountUserListForAccount(account.Account.Id); return(account); }
public AccountType(WealthDataClient data) { Name = "Account"; Field(h => h.Id).Description("The id of the account."); Field(h => h.AccountName, nullable: true).Description("The name of the account."); Field <ListGraphType <AccountUserType> >("users", resolve: context => data.GetAccountUserListForAccount(context.Source.Id) ); }