Ticket #293 (closed task: fixed)

Opened 14 years ago

Last modified 14 years ago

More examples!

Reported by: amnorvend@… Owned by: jaymccarthy
Priority: minor Milestone:
Component: jaymccarthy/mongodb.plt Keywords:
Cc: Version: (1 5)
Racket Version: 5.0.1

Description

From what I can tell, this package seems to be fairly well designed. I know how to run queries in MongoDB, but I'm still learning Scheme. A few more examples of how to do certain things would be very nice. For instance, the quickstart shows how to use mongodb using define-mongo-struct. This is useful, but I want to learn how to write queries without having to define these structs before-hand. For example, how would I do a query like this in scheme?

db.foobar.find({a: 1, b: 2})

I'm sure this is pretty simple to do, but some full examples would help demonstrate this.

Change History

Changed 14 years ago by jaymccarthy

  • status changed from new to closed
  • resolution set to fixed

(mongo-collection-find (mongo-collection db "foobar") #hasheq([a . 1] [b . 2]))

Note: See TracTickets for help on using tickets.