Ensure an index for the get() method.
public ensureGetIndex ( array $beforeSort = [], array $afterSort = [] ) : void | ||
$beforeSort | array | Fields in get() call to index before the sort field in same format as \MongoDB\Collection::ensureIndex() |
$afterSort | array | Fields in get() call to index after the sort field in same format as \MongoDB\Collection::ensureIndex() |
return | void |