Closed gopalakrishnan-subramani closed 8 years ago
I'm happy to make this more flexible. A pull request might be the best way to move this forward.
— Sent from Mailbox
On Mon, Jan 26, 2015 at 8:33 AM, Gopalakrishnan Subramani notifications@github.com wrote:
Having hard-time to bring mquery into Appcelerator Titanium. It has many dependencies. We liked mquery, it perfectly fits our needs. We have 3 use cases.
- Use with Nodejs environment, we have queries stored in DB in proprietory format (expressions), we use mquery to generate mongo query (100% find query). No issues with that.
- Use with Appcelerator Titanium client side native apps, we don't use direct Mongo Connection at mobile apps, we use NeDB, a lightweight Javascript query based Mongo engine for mobile apps. NeDB does respect many mongo find query options. We are working on bringing mquery dependent libraries, having difficulties with their dependencies.
Mobile online. Use mquery to generate the find query, convert to JSON, pass to server, get the result through JSON API. No Issues. If anyone help us or make us to understand to make a bundled mquery package to integrate into mobile apps, that would be great. Also I am hoping that mquery would continue its path with consideration our use cases, abstract the collection from direct mongo reference.
Reply to this email directly or view it on GitHub: https://github.com/aheckmann/mquery/issues/56
Made it compiled in Titanium, but disabled many modules from loading, not recommended for pull request now.
May be you can comment on below observations.
package 'util' was used only one time in mquery.js for string format, the below can be achieved via "Invalid GeoJSON specified for %s".format(type). Do you have long term plan for util module?
// GeoJSON? if (val.center.type != 'Point' || !Array.isArray(val.center.coordinates)) { throw new Error(util.format("Invalid GeoJSON specified for %s", type)); }
Now I could generate and capture the query string for our need. I wrote my own collection with find method. I will post my updates.
Thanks for great module.
Having hard-time to bring mquery into Appcelerator Titanium. It has many dependencies. We liked mquery, it perfectly fits our needs.
We have 3 use cases.
If anyone help us or make us to understand to make a bundled mquery package to integrate into mobile apps, that would be great. Also I am hoping that mquery would continue its path with consideration our use cases, abstract the collection from direct mongo reference.