cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

MongoDB find snap

Malleshappa
New Contributor

Hi All,
In one project I am using MongoDB find snap
query:([{$fisrstQuery},{$second}]). i am getting $firstQuery as string instead of value itโ€™s hold
i need like this ([{โ€œtopicโ€:โ€œtestโ€},{โ€œmsgBody.titleโ€:โ€œMongoDB Overviewโ€}])
plz anyone help me to resolve this.
Capture

3 REPLIES 3

Supratim
Contributor III

@Malleshappa Share you input payload json which is feeding to Mongo DB find snap.

@Supratim sorry for the delay in reply plz look into the input sending to mongoFind
image

Supratim
Contributor III

@Malleshappa Use something like- JSON.parse(โ€œ{โ€+$firstQuery+ โ€œ,โ€ +$second +โ€œ}โ€)