I am using Spring boot with Mongodb and developing my new application. I can use MongoRepository for database operations as well as Mongotemplate. I am using mongotemplate for my complex queries and MongoRepository small queries related to any field of POJO.
Is it ok to use both mongoRepository and MongoTemplate both in application ?