GV14982 / async-airtable

A lightweight npm package to handle working with the Airtable API.
https://www.npmjs.com/package/asyncairtable
MIT License
53 stars 5 forks source link

Query Object Capabilities #85

Closed anthonygualandri closed 2 years ago

anthonygualandri commented 2 years ago

Is something like this possible in order to get a more complex query formula for the select options when using the select method?

{
  "where": {
    "$and": [
      {
        "$or": [
          "{$eq: { '': ''}",
          "{$eq: { '': ''}",
          "{$eq: { '': ''}"
        ]
      }
    ]
  },
  "sort": [
    {
      "field": "",
      "direction": "asc"
    },
    {
      "field": "",
      "direction": "desc"
    }
  ]
}

This errors for me saying the filter formula is invalid. Also, should the error messages be saying exactly what's wrong with the formula, or are they all generic in this way? Thanks!

anthonygualandri commented 2 years ago

Nevermind. Had some errors in my object. Was using strings in places where they should have been nested objects.