# db.command.gte

Query filter, indicating that the value of the field is required to be larger than or equal to the specified value.

Method signature:

function gte(value: number): Command

Sample code

Find out the todos whose progress is greater than or equal to 50

const cloud = require('wx-server-sdk')
cloud.init()
const db = cloud.database()
const _ = db.command
exports.main = async (event, context) => {
  try {
    return await db.collection('todos').where({
      progress: _.gte(50)
    })
    .get()
  } catch(e) {
    console.error(e)
  }
}