diff --git a/src/Service.Dashboard/src/HttpApi/Resolvers/Encodes/Queries/EncodeFindOne.cs b/src/Service.Dashboard/src/HttpApi/Resolvers/Encodes/Queries/EncodeFindOne.cs index de40e843..ea8afadc 100644 --- a/src/Service.Dashboard/src/HttpApi/Resolvers/Encodes/Queries/EncodeFindOne.cs +++ b/src/Service.Dashboard/src/HttpApi/Resolvers/Encodes/Queries/EncodeFindOne.cs @@ -5,13 +5,13 @@ namespace Giantnodes.Service.Dashboard.HttpApi.Resolvers.Encodes.Queries; [ExtendObjectType(OperationTypeNames.Query)] -public class EncodeFindMany +public class EncodeFindOne { - [UsePaging] + [UseFirstOrDefault] [UseProjection] [UseFiltering] [UseSorting] - public IQueryable Encodes([Service] ApplicationDbContext database) + public IQueryable Encode([Service] ApplicationDbContext database) { return database.Encodes.AsNoTracking(); }