Errors:
(1) Schema Error: The function "$gte" only works on keys with values of type "String" or "Number" but was used on key "from" which has incompatible type of value of "Map".
{
from: {
$gte: 5
^^^ (1)
}
}
Solutions:
(1) <BlahBlah schema info and $gte docs>
For example: