FORMULA LANGUAGE


@AllChildren
Example

Includes all response documents at all levels for parent documents that match selection criteria.

Syntax

SELECT selectionFormula I @AllChildren

Return value

Selects all the documents that match selectionFormula plus their immediate responses.

Usage

@AllChildren can only be used in a view selection or selective replication formula. It must be appended to the end of a selection formula using the Boolean OR operator ("|"). Don't use it within complex expressions in a formula.

@AllChildren allows you to define a view as a set of documents that match a given formula plus the immediate responses to those documents. It also allows you to create a selective replication formula to replicate a set of documents along with the immediate responses.

Selection formulas that use @AllChildren may provide a significant advantage over formulas that use @IsResponseDoc. While @IsResponseDoc returns True for any response document in a database, @AllChildren returns only those responses that are immediate children of matching documents.

Example
See Also