From lesson 1.5: the fields are not in quotes

Hey all,

As per tutorial, for filtering purpose when we choose some particular range from the graph of any field, the value automatically gets displayed in the filter bar and the field name is in quotes and also operators(if applied like $gte etc ) are in quotes but in my Compass version they are not displayed in quotes. I am using version 1.16.

Should be normal since both of these work:

  • {“year”: {“$gte”: 1985,“$lt”: 2000}}
  • {year: {$gte: 1985,$lt: 2000}}

On the other hand, JSON.org does specify that quotes are to be used for valid formatting.

1 Like