Query.addReturnRelation

Availability

Flash Player 8

Usage

myQuery.addReturnRelation(  name:String, direction:Boolean, count:Boolean )

Parameters

name - String. Name of the relation ("tagged_with", "related" or "child_of" )
direction - Boolean. Relation direction
count - Boolean. If number of related documents should be also returned.

Returns

Nothing.

Description

Method. Defines relation information that will be returned.

Example

The following code will request ids of tag documents that document with id=5 is "tagged_with" to be returned:

myQuery = myfMaster.getQuery();
myQuery.addFilter( "$ID", "=", 5 );
myQuery.addReturnRelation( "tagged_with", true );