We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7eb81 commit 8feecb3Copy full SHA for 8feecb3
document-store/src/main/java/org/hypertrace/core/documentstore/mongo/MongoUtils.java
@@ -133,6 +133,9 @@ public static ReturnDocument getReturnDocument(final ReturnDocumentType returnDo
133
}
134
135
private static ObjectNode wrapInLiteral(final ObjectNode objectNode) {
136
+ /* Wrapping the subDocument with $literal to be able to provide empty object "{}" as value
137
+ * Throws error otherwise if empty object is provided as value.
138
+ * https://jira.mongodb.org/browse/SERVER-54046 */
139
final ObjectNode node = JsonNodeFactory.instance.objectNode();
140
node.set(LITERAL, objectNode);
141
return node;
0 commit comments