[DOCS-825] Clarification for allowed field names. Created: 29/Nov/12  Updated: 07/Dec/12  Resolved: 07/Dec/12

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.1

Type: Improvement Priority: Minor - P4
Reporter: Derick Rethans Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 10 weeks, 5 days ago

 Description   

http://docs.mongodb.org/manual/core/document/#structure should clarify which structure a top-level (and not-top-level) fieldname can have. For example, can it be an integer, or does it need to be a string.



 Comments   
Comment by auto [ 07/Dec/12 ]

Author:

{u'date': u'2012-12-07T16:10:32Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-825 clarification about field names
Branch: master
https://github.com/mongodb/docs/commit/6ba3d8bdc58c5299b8646fbc9489ee4f599c7f95

Comment by Scott Hernandez (Inactive) [ 29/Nov/12 ]

All field names (keys) are strings as defined by BSON.

Might be worth noting that here:
http://docs.mongodb.org/manual/reference/limits/#Restrictions%20on%20Field%20Names

You cannot have a null character in a field name either, which is also not mentioned in the above doc.

Generated at Thu Feb 08 07:39:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.