|
|
|
|
@ -2593,9 +2593,10 @@ public class MongoTemplate
@@ -2593,9 +2593,10 @@ public class MongoTemplate
|
|
|
|
|
QueryContext queryContext = queryOperations.createQueryContext(new BasicQuery(query, fields)); |
|
|
|
|
Document mappedFields = queryContext.getMappedFields(entity, EntityProjection.nonProjecting(entityClass)); |
|
|
|
|
Document mappedQuery = queryContext.getMappedQuery(entity); |
|
|
|
|
Document mappedSort = getMappedSortObject(query, entityClass); |
|
|
|
|
|
|
|
|
|
if (LOGGER.isDebugEnabled()) { |
|
|
|
|
|
|
|
|
|
Document mappedSort = getMappedSortObject(query, entityClass); |
|
|
|
|
LOGGER.debug(String.format("find using query: %s fields: %s sort: %s for class: %s in collection: %s", |
|
|
|
|
serializeToJsonSafely(mappedQuery), mappedFields, serializeToJsonSafely(mappedSort), entityClass, |
|
|
|
|
collectionName)); |
|
|
|
|
|