Create a new cursor
public __construct ( MongoGridFS $gridfs, MongoClient $connection, string $ns, array $query = [], array $fields = [] ) | ||
$gridfs | MongoGridFS | Related GridFS collection |
$connection | MongoClient | Database connection |
$ns | string | Full name of database and collection |
$query | array | Database query |
$fields | array | Fields to return |