Add the following configuration to etc/application.conf when deploying Ambience 202x with DocumentDB:
elixir.mongo.protocol = “documentdb4”
This additional configuration is required as DocumentDB does not support all MongoDB APIs and to prevent the following errors when deploying the Ambience 202x with DocumentDB:
-
com.mongodb.MongoCommandException: Command failed with error 305: ‘Aggregation project operator not supported: ‘$setDifference’’
https://docs.aws.amazon.com/documentdb/latest/developerguide/mongo-apis.html -
ERROR a.repository.MongoDBRepository - Command failed with error 303: ‘Field ‘partialFilterExpression’ is currently not supported’
https://stackoverflow.com/questions/72504667/aws-field-partialfilterexpression-is-currently-not-supported
Setting the elixir.mongo.protocol to “documentdb4” (“mongodb4” if not set) enables the use of compatible logic in DocumentDB.