I am using MongoKit (v0.8.1) and am bit confused about the behaviour when defining a document with use_schemaless=True and use_dot_notation=True. MongoKit ignores any dynamic attributes (ie. anything that hasn't been defined in structure dict) when saving to the db. Works as expected when accessing the document via the usual square brackets. Obviously, I can work around this by overriding __setattr__ but I find it a bit unexpected. Or is this intentional? Thanks!
MongoKit: Unexpected behaviour when using use_schemaless together with use_dot_notation
177 Views Asked by Bjoern Stiel At
0
There are 0 best solutions below
Related Questions in SCHEMALESS
- How to make schema less titan graph?How to set schema-default propery?
- Storing lists of user interests in a schemaless datastore
- Elasticsearch: is there a way to declare for all (possibly dynamic) subfields of an object field as string?
- Designing the schema for storing, editing and customizing a list
- Best practices to access schema-less data?
- Can the Friendly ORM be used alongside a traditional database schema?
- MongoKit: Unexpected behaviour when using use_schemaless together with use_dot_notation
- Why is it called NoSQL?
- something wrong when writing influx data into TDengine
- Indexing entire XML document on SOLR 7 with no field specification
- How do I get empty fields in SOLR indexed for a schemaless collection?
- Schemaless financial data, and NoSQL?
- Schema less SQL database table - practical compromise
- Schemaless Data Cache: NoSQL or Other Alternatives?
- Solr fails to store literals sent to Tika when using Schemaless mode
Related Questions in MONGOKIT
- How to make combination of keys unique in mongokit document?
- How to resolve Mongokit TypeError: __init__() got an unexpected keyword argument 'collection' error
- django_mongokit 0.2.6 not working in Django 1.11
- Django & Mongo ORM mapping
- Cannot connect to mongodb instance from docker: Connection refused
- Multiple database (PG and Mongo) Python model package
- UpdateQueryError MongoDB Array field
- What is the relationship between flask, mongokit, pymongo, flask-pymongo?
- KeyError in MongoKit when adding nested field to structure
- Mongokit How do I specify a key in a dict which is in a list as a required field?
- mongokit not authenticating mongodb replicaset, showing each connection as operation error
- Flask MongoLab MongoKit
- Flask with MongoDB using MongoKit to MongoLabs
- How do you do $elemMatch in Mongokit?
- MongoKit Nested Structure Save Error
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?