0

Consider I have two columns using which I want to fetch the rows. The condition would be

WHERE column1="test" OR column2="test"

How do I achieve this with postgREST API?

sai
  • 27
  • 4

1 Answers1

1

Your request would be:

GET /table?or=(column1.eq.test,column2.eq.test) HTTP/1.1

The recently added Logical Operators section in the docs has a more practical example.

Laurence Isla
  • 343
  • 1
  • 5