webCOMAND

collection::get_query_info()

Return the query_info, which has information about the query used to retrieve this collection, including the query itself.  This may be different than the original query if it is altered or optimized by the API, which must often be done to retrieve objects and the correct aggregate values.

Prototype

query_info get_query_info()

Return

Return query_info, which provides access to the query used to retrieve this collection, along with some additional metadata.

Example

$objects = $collection->get( "WHERE Identifier LIKE '%System%'" );
$query_info = $objects->get_query_info();
$query = $objects->get_query();
echo("Result Query: $query\n");

Related

query_info::get_query()