public AccountUserType(WealthDataClient data) { Name = "AccountUser"; Field(h => h.Id).Description("The id of the user."); Field(h => h.FirstName, nullable: true).Description("The first name of the user."); Field(h => h.LastName, nullable: true).Description("The last name of the user."); }
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) ); }
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 AccountUserController(ILogger <AccountUserController> logger, WealthDataClient dataClient) { _logger = logger; _dataClient = dataClient; }