title: filter with req.query and I had : "error_message": "Key \"name\" required but not present." in POSTMAN
body: <p>Hello I had this error since yesterday and I coudn't solve it ! I did not know the problem where :
  the error : &quot;error_message&quot;: &quot;Key &quot;name&quot; required but not present.&quot; in POSTMAN
  the code :</p>
  <p>// ```   routes :</p>
  <pre><code>app.get('/v1/sites/:site_id/balise',
  blueprintValidator.uriValidator,
  baliseController.getByBaliseName.bind(baliseController),
  sendJSON
  </code></pre>
  <p>)```
  // balise-controller :</p>
  <pre><code>  const baliseName = req.query.name
    console.log(baliseName)
    try {
      const balise = await Balise.getByName(baliseName)
  
      if (!balise) {
        return next(new ResourceNotFoundError(req, res, 'No balise found for this name.'))
      }
      res.locals.data = balise
      next()
    } catch (next) {
  
    }
  }```
  
  // balise - model : 
  
  
  ```Balise.getByName = async function (baliseName) {
    console.log('aabbab')
    return await new Balise({ name: baliseName }).fetch()
  }```
  
  // balise - doc file : 
  
  ## Filter balises [/v1/sites/{site_id}/balise{?name}]
  
  + Parameters
    + site_id: `` (integer) ... id of the Site
    + name: `` (string)
  
  ### balise [GET]
  
  + Response 200 (application/json)
  
    JSON representation of Balise Collection Resource. The Balise resources in collections are embedded.
  
    + Body
  
              
                  {
                    &quot;id&quot;: 2,
                    &quot;equipment_id&quot;: 1,
                    &quot;name&quot;: &quot;Balise2&quot;,
                    &quot;operating_mode&quot;: &quot;IN&quot;,
                    &quot;power_ble&quot;: 40,
                    &quot;latitude&quot;: 45.718416666667,
                    &quot;longitude&quot;: 5.0804166666667
                  }
    
  </code></pre>