I am trying to call an API which is on a Payload CMS
implementation. The API returns an article stored on the server.
To find the right article I need to send a query string to the server which contains 4 parameters and is formatted as follow:
&where[AND][0][field1][equals]={{v1}}
&where[AND][1][field2][equals]={{v2}}
&where[AND][2][OR][0][field3][equals]={{v3}}
&where[AND][2][OR][1][field3][equals]={{v4}}
&where[AND][3][field4][equals]={{v5}}
This query is equivalent in sql to the following
WHERE field1 = 'v1' AND
field2 = 'v2' AND
(field3 = 'v3' OR field3 = 'v4') AND
field4 = 'v5'
The problem is that every single query parameter has the same name ('where
') so probably the server is interpreting these parameters as an array.
The question is: How can I manage these parameters within flutterflow?
Any suggestion on how to overcome this limitation?