Dependency: Official MongoDB Java driver
- Install MongoDB: http://www.mongodb.org/display/DOCS/Quickstart
- Download MongoDB Java Driver: https://github.com/mongodb/mongo-java-driver/downloads
- Move .jar into
- restart your CF.
- run demo/gettingstarted.cfm
NOTE 1: CF's struct keys are stored in UPPERCASE by default. However, MongoCFC will convert _id and all modifier operators (e.g. $set and $inc) into the correct case. To use mixed/lowercase, quotes the key like the example above.
NOTE 2: CF's struct does not preserve insertion order. When specifying multiple index or sort columns, use util.orderedStructNew() or exception will be thrown.
demo/gettingstarted.cfm and compare to the other excellent project CFMongoDB at: http://cfmongodb.riaforge.org/