Questions tagged [gmongo]

A more simple, easy to use and less verbose API to work with mongodb using the Groovy programming language

GMongo provides a wrapper on top of the Java MongoDB driver. This allows you to use the Java driver in a more 'groovy' manner. The source for this library is available on GitHub.

18 questions
0
votes
2 answers

Gmongo date query

Given a mongo collection (stripped down to only a few fields for illustrative purposes): { "_id" : ObjectId("52402905e4b0cebf1e474093"), "impressionId" : LUUID("6a46028f-aa02-e87d-c097-01df765ec487"), "requestTime" :…
Stuart
  • 3,226
  • 5
  • 24
  • 28
0
votes
4 answers

Aggregations in gmongo 0.9.1

I need to implement some simple aggregations in my app powered by Grails 1.3.7. The mongodb-plugin of 1.0.0.RC3 ships with gmongo 0.9.1, where the aggregate functions are not implemented. How can I solve the problem? Are there any hooks to call…
injecteer
  • 20,038
  • 4
  • 45
  • 89
0
votes
1 answer

unable to insert document in mongo using gmongo

I have the following code to insert a document in groovy but I keep getting this error in grails applications def zipcode = getDocumentCollection() zipcode.insert(["city": "ACMAR", "loc": [-86.51557F, 33.584132F], "pop": 6055, "state": "AL",…
allthenutsandbolts
  • 1,513
  • 1
  • 13
  • 34
1
2