using FamilyTreeAPI.Models; namespace FamilyTreeAPI.GraphQL.Query { public class QueryFamilyTree { [UsePaging] [UseProjection] [UseFiltering] [UseSorting] public IQueryable GetPersons([Service] FamilyTreeDBContext dBContext) => dBContext.Persons; [UsePaging] [UseProjection] [UseFiltering] [UseSorting] public IQueryable GetStaffs([Service] FamilyTreeDBContext dBContext) => dBContext.staff; } }