Beispiel #1
0
 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.");
 }
Beispiel #2
0
        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)
                                                     );
        }
Beispiel #3
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"))
                                );
        }
Beispiel #4
0
 public AccountUserController(ILogger <AccountUserController> logger, WealthDataClient dataClient)
 {
     _logger     = logger;
     _dataClient = dataClient;
 }