title: SyntaxError: expected expression, got '}' @(shell):1:0 in mongoDB
body: <p>I am getting <code>SyntaxError: expected expression, got '}' @(shell):1:0</code> while hitting the query  on shell</p>
  
  <pre><code>db.address.aggregate([ 
      {
          "$project": {
              "applications": {
                  "$filter": {
                      "input": "$applications",
                      "as": "applications",
                      "cond": {
  
                          "$or": [
                              {
                                  "$and": [
                                      {"$in": ['122018', "$$applications.code"]},
                                      {"$eq": ["$$applications.name", "DSB"]},
                                  ]
                              },
                              {
                                  "$and": [
                                      {"$in": ['122018', "$$applications.code"]},
                                      {"$eq": ["$$applications.name", "DSB"]},
                                  ]
                              }
                          ]
  
  
                      }
                  }
              },
              name: true
          }
      },
      {$unwind: {path: "$applications", preserveNullAndEmptyArrays: false}}
  ])
  </code></pre>
  
  <p><strong>where is the syntex error</strong></p>