Hello there!
I'm currently facing a weird problem related with a MongoDB find-query block. For putting the entire context, I'm running an automated workflow via an external trigger.
Let's say that I have a 1st MongoDB block named "getUserId" whose output is just a string, therefore the way I would capture this information into another subsequent block is by calling "{{getUserId.data}}". The query done is bringing the results flawlessly.
Then, when I connect this block with a 2nd block named "getAssetReport" (which would be the MongoDB query that I am looking for), the query is giving NO RESULTS AT ALL, even though the parameters of the query field are passed correctly and those work well when I manually single-run the block by pressing the blue Run button.
I've tried as many deploys as possible for a couple of days. No problems with the database exist whatsoever, nor even the trigger itself which runs perfectly.
Here is a screenshot of the evaluated query expression inside "getAssetReport" block. This evaluated expression picks up the result from the previous block and then it converts it into the valid string:
Then this is the output given by the block itself. Simply Empty:
Again, if I enter this string result manually and do the Block Run, it works perfectly. It's as if the 2nd MongoDB block is being blocked by Retool itself since the 1st one works very well. There is not Error Throwing at all, just an empty data that Retool is sending in the find-query.
Last but not least, I did duplicated the 1st block and connected it afterwards. The thing is that is as Retool is not allowing me to execute a 2nd query automatically, even though the collections and database are not that heavy.
Do you guys could figure out what would be the cause of this? I'm out of options.
Thanks beforehand for your support!