Files
FictionArchive/FictionArchive.Service.NovelService/GraphQL/Query.cs
gamer147 75e96cbee5
All checks were successful
CI / build-backend (pull_request) Successful in 1m13s
CI / build-frontend (pull_request) Successful in 34s
[FA-17] Update auth
2025-11-27 23:23:03 -05:00

20 lines
492 B
C#

using FictionArchive.Service.NovelService.Models.Novels;
using FictionArchive.Service.NovelService.Services;
using HotChocolate.Authorization;
using HotChocolate.Data;
using HotChocolate.Types;
namespace FictionArchive.Service.NovelService.GraphQL;
public class Query
{
[Authorize]
[UsePaging]
[UseProjection]
[UseFiltering]
[UseSorting]
public IQueryable<Novel> GetNovels(NovelServiceDbContext dbContext)
{
return dbContext.Novels.AsQueryable();
}
}