FgForrest / evitaDB

evitaDB is a specialized database with an easy-to-use API for e-commerce systems. It is a low-latency NoSQL in-memory engine that handles all the complex tasks that e-commerce systems have to deal with on a daily basis. evitaDB is expected to act as a fast secondary lookup/search index used by front stores.
https://evitadb.io
Other
62 stars 7 forks source link

The hierarchy exclusion predicate can be set only once! #661

Closed novoj closed 2 months ago

novoj commented 2 months ago

This query:

# Write your GraphQL query for catalog buga here.
{
  listProduct(
    filterBy: {
      entityPrimaryKeyInSet: [132,135,193,865,1004,2313,3674,3695]    
      hierarchyCategoriesWithin: {
        ofParent: {
          attributeCodeInSet: ["kalhoty", "saty", "sukne"]
        }
        with: {
          having: {
            attributeStatusEquals: "ACTIVE"
          }
        }
      }    
    }
  ){
    primaryKey
    attributes(locale: cs){
      url
    }
  }
}

Ends up with error:

{
  "data": null,
  "errors": [
    {
      "message": "The hierarchy exclusion predicate can be set only once!",
      "locations": [
        {
          "line": 3,
          "column": 3,
          "sourceName": null
        }
      ],
      "path": [
        "listProduct"
      ],
      "extensions": {
        "errorCode": "62663481f4e06623dca9964d207b9599:af7e03290249dcf135c6dd7ad7cd6bc9:84"
      }
    }
  ]
}

Fix needs to be propagated to 2024.9