Provides support to increase developer productivity in Java when using MongoDB. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
@Document
public record TestRecord(@Id String field1, String field2, LayerOne layerOne) {
public record LayerOne(List<LayerTwo> layerTwo) { }
public record LayerTwo(LayerThree layerThree) { }
public record LayerThree(int fieldA int fieldB) { }
}
The following aggregation query should work (and does work in the shell), but throws an error:
given the following data model:
The following aggregation query should work (and does work in the shell), but throws an error:
The following error is produced: