Is it possible to set "check_keys: false" for inserts via casbah?

295 views
Skip to first unread message

Thomas Jäckle

unread,
Dec 7, 2015, 4:37:04 AM12/7/15
to mongodb-casbah-users

MongoDB's Pything API has the option check_keys=False which allows $ and . in attribute names.

insert(doc_or_docs[, manipulate=True[, safe=False[, check_keys=True]]])


The Node.js driver also has a "checkKeys" parameter: https://mongodb.github.io/node-mongodb-native/api-generated/collection.html


Is there an equivalent in Casbah?

Ross Lawley

unread,
Dec 7, 2015, 5:03:09 AM12/7/15
to mongodb-ca...@googlegroups.com
Hi Thomas,

This isn't available in Casbah.  Casbah is built upon the Java driver which doesn't have this feature and is strict when checking keys.

Ross

--
You received this message because you are subscribed to the Google Groups "mongodb-casbah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-casbah-u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--


{ name     : "Ross Lawley",
  title    : "Senior Software Engineer",
  location : "London, UK",
  twitter  : ["@RossC0", "@MongoDB"],
  facebook :"MongoDB"}

Reply all
Reply to author
Forward
0 new messages