Skip to main content

Module op

Module op 

Source
Expand description

Field operations: the {"__op":...} values a client sends instead of a literal.

Upstream decodes these in src/Controllers/DatabaseController.js and src/Adapters/Storage/Mongo/MongoTransform.js. They are wire-visible in both directions: a client sends them on a write, and Increment is echoed back as its resulting number.

Deliberately no PartialEq, for the same reason as ParseValue: an Op carries ParseValue, so a derived comparison would inherit the float hazards.

Enumsยง

Op
A field operation.