MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / fullValueFromElement

Function fullValueFromElement

src/ExtOperator.actor.cpp:598–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorPop, "$pop");
597
598DataValue fullValueFromElement(bson::BSONElement element) {
599 if (element.type() == bson::Object)
600 return DataValue(element.Obj());
601 else if (element.type() == bson::Array)
602 return DataValue(bson::BSONArray(element.Obj()));
603 else
604 return DataValue(element);
605}
606
607ACTOR static Future<Void> doPullActor(Reference<IReadWriteContext> cx,
608 Standalone<StringRef> path,

Callers 3

executeMethod · 0.85
executeMethod · 0.85

Calls 1

DataValueClass · 0.85

Tested by

no test coverage detected