"SequoiaDB Giant Sequoia Database" next() Overview 2

error

Exception is thrown if an error, and outputs an error message via getLastErrMsg () Gets error message or by getLastError () to get the error code. For error handling, please refer to the common error handling guide .

For common errors, please refer to error codes .

Example

  • Select the records whose age field value is greater than 20 in the collection employee, and return the next record pointed to by the current cursor

  • db.sample.employee.find( { age: { $gt: 20 } } ).next()
    {
      "_id": {
        "$oid": "5cf8aefe5e72aea111e82b39"
      },
      "name": "ben",
      "age": 21
    }

    Click on Jushan Database Documentation Center for more information

Guess you like

Origin blog.csdn.net/weixin_45890253/article/details/113109257