Limit
The Limit
method allows you to limit the number of documents returned in a collection.
Usage
witchers := WitcherModel.Find().Limit(5).ExecTT()
In the example above, we are limiting the number of documents returned to 5.
The Limit
method allows you to limit the number of documents returned in a collection.
witchers := WitcherModel.Find().Limit(5).ExecTT()
In the example above, we are limiting the number of documents returned to 5.