diff --git a/Mimir.MongoDB/Repositories/ProductRepository.cs b/Mimir.MongoDB/Repositories/ProductRepository.cs index 3bbe110e..75d91a46 100644 --- a/Mimir.MongoDB/Repositories/ProductRepository.cs +++ b/Mimir.MongoDB/Repositories/ProductRepository.cs @@ -17,6 +17,7 @@ namespace Mimir.MongoDB.Repositories; public interface IProductRepository { + IExecutable Get(ProductFilter? productFilter); Task GetByProductIdAsync(Guid productId); } diff --git a/Mimir.MongoDB/Repositories/ProductsRepository.cs b/Mimir.MongoDB/Repositories/ProductsRepository.cs index 6f7f7481..eb161c94 100644 --- a/Mimir.MongoDB/Repositories/ProductsRepository.cs +++ b/Mimir.MongoDB/Repositories/ProductsRepository.cs @@ -10,7 +10,7 @@ public interface IProductsRepository{ Task GetByAvatarAddressAsync(Address avatarAddress); } -public class ProductsRepository(IMongoDbService dbService):IProductsRepository +public class ProductsRepository(IMongoDbService dbService) : IProductsRepository { public async Task GetByAvatarAddressAsync(Address avatarAddress) { diff --git a/Mimir/GraphQL/Types/QueryType.cs b/Mimir/GraphQL/Types/QueryType.cs index c7ab1b25..8f51fa46 100644 --- a/Mimir/GraphQL/Types/QueryType.cs +++ b/Mimir/GraphQL/Types/QueryType.cs @@ -17,7 +17,7 @@ protected override void Configure(IObjectTypeDescriptor descriptor) .Resolve(context => { var productFilter = context.ArgumentValue("filter"); - return context.Service().Get(productFilter); + return context.Service().Get(productFilter); }); } }