Precondition: I'm using Typeorm to perform database queries and I can't use the queryBuilder
methods to create this query, but only the find
method.
I need to translate a query like:
SELECT * FROM address where zip = 123 and (street = 'asd' or city = 'New York');
I know that the solution can be trivial using the usual queryBuilder
, but in this particular case I cannot use it.
Is it possible to implement these nested and/or conditions only using the find
method?