File tree Expand file tree Collapse file tree
CustomerManagementAPI.Host Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 "authorities" : [
1515 {
1616 "scheme" : " self" ,
17- "authority" : " https://localhost:5001 " ,
17+ "authority" : " https://graphqlplay22.azurewebsites.net " ,
1818 "additionalEndpointBaseAddresses" : [
1919 ]
2020 }
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ public CustomerType()
1010 Name = "customer" ;
1111 Field < StringGraphType > ( "Id" , "The id of the customer" ) ;
1212 Field < StringGraphType > ( "name" , "The name of the customer" ) ;
13-
13+ Field < StringGraphType > ( "address" , "The address of the customer" ) ;
14+ Field < StringGraphType > ( "postalCode" , "The postalCode of the customer" ) ;
15+ Field < StringGraphType > ( "city" , "The city of the customer" ) ;
16+ Field < StringGraphType > ( "telephoneNumber" , "The telephoneNumber of the customer" ) ;
17+ Field < StringGraphType > ( "emailAddress" , "The emailAddress of the customer" ) ;
1418 }
1519 }
1620}
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ public void AddGraphTypeFields(MutationCore mutationCore)
2020 {
2121 mutationCore . FieldAsync < CustomerType > ( name : "upsertCustomer" ,
2222 description : null ,
23- arguments : new QueryArguments ( new QueryArgument < NonNullGraphType < CustomerCreateInputType > > { Name = "customer " } ) ,
23+ arguments : new QueryArguments ( new QueryArgument < NonNullGraphType < CustomerCreateInputType > > { Name = "input " } ) ,
2424 resolve : async context =>
2525 {
2626
27- var input = context . GetArgument < CustomerCreateInput > ( "customer " ) ;
27+ var input = context . GetArgument < CustomerCreateInput > ( "input " ) ;
2828 var customer = new CustomerManagementStore . Model . Customer
2929 {
3030 Id = input . Id ,
You can’t perform that action at this time.
0 commit comments