共用方式為


MongoDbCursorMethodsProperties interface

Mongodb 查詢的數據指標方法

屬性

limit

指定伺服器傳回的檔案數目上限。 limit() 類似於 SQL 資料庫中的 LIMIT 語句。 類型:integer (或 expression with resultType integer) 。

project

指定要在符合查詢篩選條件之檔中傳回的欄位。 若要傳回相符檔中的所有字段,請省略此參數。 Type:string (或 expression with resultType string) 。

skip

指定略過的檔數目,以及 MongoDB 開始傳回結果的位置。 此方法在實作分頁結果方面可能很有用。 類型:integer (或 expression with resultType integer) 。

sort

指定查詢傳回相符檔的順序。 Type:string (或 expression with resultType string) 。 Type:string (或 expression with resultType string) 。

屬性詳細資料

limit

指定伺服器傳回的檔案數目上限。 limit() 類似於 SQL 資料庫中的 LIMIT 語句。 類型:integer (或 expression with resultType integer) 。

limit?: any

屬性值

any

project

指定要在符合查詢篩選條件之檔中傳回的欄位。 若要傳回相符檔中的所有字段,請省略此參數。 Type:string (或 expression with resultType string) 。

project?: any

屬性值

any

skip

指定略過的檔數目,以及 MongoDB 開始傳回結果的位置。 此方法在實作分頁結果方面可能很有用。 類型:integer (或 expression with resultType integer) 。

skip?: any

屬性值

any

sort

指定查詢傳回相符檔的順序。 Type:string (或 expression with resultType string) 。 Type:string (或 expression with resultType string) 。

sort?: any

屬性值

any