From the flask component I have request that I call:
request_json = request.get_json()
This is a JSON object containing the following:
{'filter1' : '123', 'filter2' : '456', 'filter3' : '789' }
Also these filters can vary in size depending on the front end user. It could be just one filter or multiple.
I am wondering how you would convert an object such as this to a query that would be usable? I believe or_() and and_() is what I need to use to build the filter. Is it possible to do something such as...
query.filter_by(and_(*request_json))
I am very new to the entire tech stack...any help would be appreciated!