Closed SOCRATESZZ closed 1 month ago
Whenever I am trying to retrieve two documents. It is throwing connection time out error. The code works correctly when I try to retrieve 1 document. But when I try to query multiple documents. It throws connection time out error I am using Morphia.
function to return datastore mongodb = Mongod.instance().start(Version.V7_0_12); ServerAddress serverAddress = mongodb.current().getServerAddress(); MongoClient mongoClient = MongoClients.create("mongodb://" + serverAddress); datastore = Morphia.createDatastore(mongoClient, MorphiaConfig.load());
datastore.find(mongoModelType).filter(Filters.eq("id", user.getId()))
@SOCRATESZZ do you have any stack trace?
@SOCRATESZZ i close this issue.. reopen if needed..
Whenever I am trying to retrieve two documents. It is throwing connection time out error. The code works correctly when I try to retrieve 1 document. But when I try to query multiple documents. It throws connection time out error I am using Morphia.
datastore.find(mongoModelType).filter(Filters.eq("id", user.getId()))