Commit 5b558566 authored by Neosoulink's avatar Neosoulink
Browse files

feat: add query to get merchants products

parent da004e69
Loading
Loading
Loading
Loading
+54 −0
Original line number Diff line number Diff line
@@ -20,3 +20,57 @@ export const GET_MERCHANTS_QUERY: TypedDocumentNode = gql`
		}
	}
`;

export const GET_STORED_PRODUCT: TypedDocumentNode = gql`
	query GetStoreProducts($storeId: String!, $fullProducts: Boolean!) {
		getStoreProducts(storeId: $storeId, fullProducts: $fullProducts) {
			id
			price
			count
			isTakeaway
			isProductAvailable
			isDeliveryRequired
			isCarrierRequired
			isManufacturing
			soldCount
			product {
				id
				title {
					locale
					value
				}
				description {
					locale
					value
				}
				images {
					url
					locale
					width
					height
					orientation
				}
				_id
				descriptionHTML {
					locale
					value
				}
				_createdAt
				_updatedAt
				detailsHTML {
					value
					locale
				}
				categories
				details {
					value
					locale
				}
			}
			_id
			initialPrice
			deliveryTimeMin
			deliveryTimeMax
		}
	}
`;