public OrganizationGraphType(IDataPersons data)
 {
     Name        = "Organization";
     Description = "Entity that represents an organization";
     Field(x => x.Name).Description("Name of organization");
     Field <ListGraphType <PeopleGraphType> >("People", resolve: context => {
         return(data.GetPeople().Where(p => p.Organizations.Contains(context.Source.Id)));
     });
 }
 public SearchQuery(IDataPersons data)
 {
     Name = "Query";
     Field <StringGraphType>("Ping", resolve: context => "Ping ok");
     Field <ListGraphType <PeopleGraphType> >("People", resolve: context => {
         return(data.GetPeople());
     });
     Field <ListGraphType <OrganizationGraphType> >("Organizations", resolve: context => {
         return(data.GetOrganizations());
     });
 }