D
D
Dream2021-08-04 16:18:08
Python
Dream, 2021-08-04 16:18:08

How to use operators in MongoDB?

Why is my $gt underlined in red? And what is the correct way to use operators in MongoDB? Error: Expression expected ':' expected
db.users.find ({age: {$gt : 30}})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Romanov, 2021-08-04
@dreameddd

In python:
db.users.find({'age': {'$gt': 30}})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question