evitaDB - Fast e-commerce database
logo
page-background

Collection

Only a few constraints can be used in the header part of the query. Collection defines the query target.

Collection

argument:string!

mandatory string argument representing the name of the entity collection to be queried

This constraint defines entity collection targeted by this query.
It can be omitted if the filterBy contains a constraint that targets a globally unique attribute. This is useful for one of the most important e-commerce scenarios, where the requested URI needs to match one of the existing entities (see the routing chapter for a detailed guide).

Author: Ing. Jan Novotný

Date updated: 12.12.2024

Documentation Source