Poq.SDK.Node

Home > @poq/sdk-sfcc > NestedQuery

NestedQuery class

A nested query queries nested documents that are part of a larger document. The classical example is a product master with variants (in one big document) where you want to constrain a search to masters that have variants that match multiple constraints (like color = blue AND size = M). This query is not compatible with some search types.

Signature:

export declare class NestedQuery extends BaseModel<NestedQuery> 

Extends: BaseModel<NestedQuery

Constructors

Constructor Modifiers Description
(constructor)(params)   Constructs a new instance of the NestedQuery class

Properties

Property Modifiers Type Description
path   string  
query   object Document representing a query. A query contains a set of objects that define criteria used to select records. A query can contain one of the following:
scoreMode?   NestedQueryScoreModeEnum (Optional)