Search in sources :

Example 1 with UnsetFieldUpdateAction

use of com.torodb.mongodb.language.update.UnsetFieldUpdateAction in project torodb by torodb.

the class UpdateActionTranslator method translateUnsetField.

private static void translateUnsetField(CompositeUpdateAction.Builder builder, BsonDocument argument) {
    for (Entry<?> entry : argument) {
        Collection<AttributeReference> attRefs = parseAttributeReference(entry.getKey());
        builder.add(new UnsetFieldUpdateAction(attRefs), false);
    }
}
Also used : AttributeReference(com.torodb.core.language.AttributeReference) UnsetFieldUpdateAction(com.torodb.mongodb.language.update.UnsetFieldUpdateAction)

Aggregations

AttributeReference (com.torodb.core.language.AttributeReference)1 UnsetFieldUpdateAction (com.torodb.mongodb.language.update.UnsetFieldUpdateAction)1