<slide>
<title>MongoDB Data Validation</title>

<blurb>Allows you to set a *validator*, a query that every new or updated document must match</blurb>
<blurb>Example:</blurb>
<example inline="1">
db.runCommand( {
	*collMod:* "whisky",
	*validator:* {
		name: { $type: "string" },
		age: { *$type:* "integer" },
	},
	validationLevel: *"moderate"*, // off, strict
	validationAction: *"warn"*, // error, 
} )
</example>
</slide>
