findfind on a mongoclientmongoclient rather than a collectioncollection.hasNext().hasNext() , .next().next() .map().map() or .toArray().toArray() collection.findcollection.findclass CommandCursor<T>class CommandCursor<T> inJoin the Discord to continue the conversation