• Resolved tomzorz

    (@tomzorz)


    I’m seeing both these functions used in the documentation to filter down the query – but what’s the difference between them?
    Does filterByFormula take all filter parameters at once, whereas addFilter requires you to state just one parameter, or..?

    I’m getting started on some functionality which should enable the user to filter the results out pretty deep, so I wanna be on top of Airpress’ best practices!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chester McLaughlin

    (@chetmac)

    Correct. Think of filterByFormula as completely replacing the ‘filterByFormula’ each time you call it whereas addFilter appends a filter to the ‘filterByFormula’ string (by default using AND instead of OR).

    Thread Starter tomzorz

    (@tomzorz)

    Great! Thanks for the quick reply, Chester!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Difference between ->filterByFormula() and ->addFilter()’ is closed to new replies.