Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
denomelchenko committed Jul 17, 2024
1 parent f7e4b74 commit 7a38c39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@AllArgsConstructor
@NoArgsConstructor
public class FilterRequest {
String categoryId;
String categoryName;
String sizeId;
String typeOfPriceSort;
ColorEnum color;
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/graphql/category.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ type Category{

extend type Query {
allCategories: [Category!]!
categoryById(categoryId: ID!): Category!
}
6 changes: 3 additions & 3 deletions src/main/resources/graphql/item.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ input ItemInput {
rating: String,
price: Float!,
availableCount: Int!,
categoryId: String!,
categoryName: String!,
salePrice: Float,
soldCount: Int!
}

input FilterItemInput {
categoryId: String
categoryName: String
sizeId: String
typeOfPriceSort: String
color: Color
Expand All @@ -34,7 +34,7 @@ input FilterItemInput {
extend type Query {
bestSellers(limit: Int): [Item!]!,
itemsByTitle(title: String!, language: Language!, paginationRequest: PaginationRequest!): [Item!]!,
itemsByCategoryId(categoryId: ID!, paginationRequest: PaginationRequest!): [Item!]!
itemsByCategoryName(categoryName: String!, paginationRequest: PaginationRequest!): [Item!]!
itemById(itemId: ID!): Item!
itemsFilter(filterRequest: FilterItemInput!): [Item!]!
}
Expand Down

0 comments on commit 7a38c39

Please sign in to comment.