public override void AddQueries(RootGraphQLQuery rootQuery)
 {
     rootQuery.DefineSingleAndConnection <ContactGraphType, Contact>  ("contact", this._contactResolver);
     rootQuery.DefineSingleAndConnection <SpeciesGraphType, Species>  ("species", this._speciesResolver);
     rootQuery.DefineSingleAndConnection <BreedGraphType, Breed>      ("breed", this._breedResolver);
     rootQuery.DefineSingleAndConnection <LocationGraphType, Location>("location", this._locationResolver);
 }
Exemple #2
0
 public override void AddQueries(RootGraphQLQuery rootQuery)
 {
     rootQuery.DefineSingleAndConnection <UserGraphType, DataAccessUserContext>("user", this._resolver);
     rootQuery.Field <ListGraphType <StringGraphType> >(
         "permissions",
         "All permissions accepted by GraphQL.",
         resolve: ctx => Permissions.AllPermissions
         );
 }