#1 2016-04-26 07:53:41

DigDiver
Member
Registered: 2013-04-29
Posts: 137

Mongodb $query,$orderby operators is deprecated

How to perform sorting of the results of a query using the methods Find* (FindJSON, FindDocs) of the TMongoCollection class?

It's possible to use Server.ExecuteJson([TSQLRecord, SQL]) method, which transmits $orderby by the $query operator, but these operators are deprecated.

Deprecated since version 3.2:

$query operator.
   The $query operator is deprecated. Use the cursor methods to apply options to a cursor.
$orderby operator.
The $orderby operator is deprecated. Use cursor.sort() instead.

Offline

Board footer

Powered by FluxBB