Issue Details (XML | Word | Printable)

Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store MongoDB

Support native MongoDB queries

Created: 19/Feb/14 12:38 PM   Updated: 13/Sep/14 12:39 PM
Component/s: Query
Affects Version/s: None
Fix Version/s: None

 Description  « Hide
We could potentially allow
pm.newQuery("MongoDB", "db.MYCOLL.findOne({'_id':'" + oid + "'})");

em.createNativeQuery("db.MYCOLL.findOne({'_id':'" + oid + "'})", MyClass.class);

Obviously this would have to only support a subset of the possible MongoDB API calls possible from DB.getCollection(...). So find, and findOne. Similarly the returned DBObject's would need unmapping to return the Object[] for a row of results.

The alternative is already available via NucleusConnection

Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.