is it possible to utilize geo spatial queries operator of mongodb using rest api in dreamfactory
for e,g
something along the lines of
db.zips.find( { ‘loc’: {$near : [ 47.6, 117.45] } } ).limit(3)
It doesn’t look like anyone in the community has tried what you’re trying yet, @ikyaqoob. But please do come back and post your solution once you’re done!
Hi Jeff
DreamFactory is really such an amazing MBAAS
i can access MongoDB using standards swagger generated api’s using SQL type queries
and if I have to use the operators which are native to MongoDB only
///////////////////////////////
due to the language agnostic design of dreamfactory , i can test my logic using CURL then using live api’s and finally adapt it using the api so it’s a three way treat
thanks once again guys for putting such a fantastic product
loc is the name of the field that i’m trying to filter on. When i run this in the Mongo Command line i get appropriate results. But i can’t seem to figure out how to do it through DreamFactory. The blog post that you suggested is a little out of date. How can i call the getRecordsByPost() request? Is that a query paramater?
After some further investigation it looks like i was missing quotes. Here’s the working filtered data that i used in the text input of the dreamfactory api docs section: