Is it possible to use requests library to querying data from cloud firestore?
For example this is how database look like::
I tried to get data(get all documents where "add_date" is equal to "01.08.2020" and limit these to 3):
result = requests.get('https://firestore.googleapis.com/v1/projects/**************************maindata/.json?orderBy="add_date"&EqualTo="01.01.2020"&limitToLast=3')
but I am getting error:
{'error': {'code': 400, 'message': 'Invalid JSON payload received. Unknown name "limitToLast": Cannot bind query parameter. Field 'limitToLast' could not be found in request message.\nInvalid JSON payload received. Unknown name "EqualTo": Cannot bind query parameter. Field 'EqualTo' could not be found in request message.', 'status': 'INVALID_ARGUMENT', 'details': [{'@type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'description': 'Invalid JSON payload received. Unknown name "limitToLast": Cannot bind query parameter. Field 'limitToLast' could not be found in request message.'}, {'description': 'Invalid JSON payload received. Unknown name "EqualTo": Cannot bind query parameter. Field 'EqualTo' could not be found in request message.'}]}]}}
For realtime database that was okay.
I know that the problem is much more complicated but I don't know where to start to solve it.
Many thanks.