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);
 }
Ejemplo n.º 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
         );
 }
Ejemplo n.º 3
0
 public virtual void AddQueries(RootGraphQLQuery rootQuery)
 {
 }