Field
noun
say it: “FEELD” /ˈfild/
One named piece of information in a MongoDB document, made of a name and its value.
What is a field in a MongoDB document?
A field is one named detail of a document: a name, a colon and a value, such as minutes: 25. A document is a set of fields between braces, and a value can be text, a number, a date, an array or another document.
{
name: "Chickpea Curry", // a field holding text
minutes: 25, // a field holding a number
tags: ["vegan", "quick"] // a field holding an array
}
In a sentence
- “Ana added a cuisine field to every recipe, so they could be filtered by cuisine.”
- “Each field name in a document is followed by a colon and its value.”
Level: Novice · More MongoDB terms at this level
Updated