Greetings everyone,
How do you call the following code under the .RunMethod of a JavaObject:
myDoc = collection.find(eq("i", 71)).first();
The above code is an example given for mongodb tutorial in Java.
I tried the following code in B4J to follow the above code:
cursor = empCollection.RunMethod("find", _
Array As Object(eq.RunMethod("eq", Array As Object("_id", 1))))
cursor.RunMethod("first", Null)
And what I have got when I run the log(cursor) is the following:
(FindIterableImpl) com.mongodb.client.internal.FindIterableImpl@27005223
Thanks.
How do you call the following code under the .RunMethod of a JavaObject:
myDoc = collection.find(eq("i", 71)).first();
The above code is an example given for mongodb tutorial in Java.
I tried the following code in B4J to follow the above code:
cursor = empCollection.RunMethod("find", _
Array As Object(eq.RunMethod("eq", Array As Object("_id", 1))))
cursor.RunMethod("first", Null)
And what I have got when I run the log(cursor) is the following:
(FindIterableImpl) com.mongodb.client.internal.FindIterableImpl@27005223
Thanks.