MCPcopy Create free account
hub / github.com/documentdb/documentdb / ValidateUpdateDocument

Function ValidateUpdateDocument

pg_documentdb/src/update/bson_update.c:396–404  ·  view source on GitHub ↗

* ValidateUpdateDocument is a wrapper around BsonUpdateDocument that * can be used to validate given update document. */

Source from the content-addressed store, hash-verified

394 * can be used to validate given update document.
395 */
396void
397ValidateUpdateDocument(const bson_value_t *updateSpec, const bson_value_t *querySpec,
398 const bson_value_t *arrayFilters, const bson_value_t *variableSpec)
399{
400 BsonUpdateMetadata metadata = { 0 };
401 bool buildSourceDocOnUpsert = false;
402 BuildBsonUpdateMetadata(&metadata, updateSpec, querySpec, arrayFilters,
403 variableSpec, buildSourceDocOnUpsert);
404}
405
406
407/*

Callers 3

command_find_and_modifyFunction · 0.85
UpdateOneInternalFunction · 0.85

Calls 1

BuildBsonUpdateMetadataFunction · 0.85

Tested by

no test coverage detected