AWS's DocumentDB is not the same as Mongo -- specifically, you cannot use the $where operator in find queries. Specifically, I wish to make a query that will show me all results where document fields x == y, e.g.:
> db.my_collection.find({$where:"this.x==this.y"}).pretty();
Error: error: {
"ok" : 0,
"operationTime" : Timestamp(1623784861, 1),
"code" : 303,
"errmsg" : "Feature not supported: $where"
}
How is this done in DocDB?