-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Support '.' in field names. #399
Comments
Does MongoDB support this? If so, link some documentation. Thanks.
|
In any case this is not going to be supported as the dot is used as separator for fields. |
@bdfoster Good point, I hadn't considered that. I was thinking of this in the context of what would be supported by "THE Javascript Database" I've been hoping to get out of this package given its minimal dependencies. I'm relatively new to MongoDB so haven't got all the mongo-isms down. Great work on this btw! It's my go-to for personal projects. |
Just to close the loop here: MongoDB also does NOT support using periods in field names. https://docs.mongodb.com/manual/core/document/#field-names
|
I am trying to save measurements from the react perf add on to the database, but cannot due to the restriction on '.' in field names. I would expect the database to handle all valid json objects but because of this restriction this is not the case. A sample attribute from the measurements is below:
I could probably encode the periods with afterSerialization and beforeDeserialization but at that point, it's just easier to use a different database.
The text was updated successfully, but these errors were encountered: