Limit & Sort
const collection : Collection<Student> = client.db("school").collection<Student>("students");Sort
const result = await collection.find({}).sort({ name: 1 }).toArray();const result = await collection.find({}).sort({ name: 1, age: -1 }).toArray();Taalafhankelijke sortering
const result = await collection.find({}).sort({ name: 1 }).collation({ locale: "en" }).toArray();Apple
Grapefruit
bananaLimit (en Skip)
Laatst bijgewerkt