morphia icon indicating copy to clipboard operation
morphia copied to clipboard

why `Query#iterator` return `dev.morphia.query.internal.MorphiaCursor` instead of `dev.morphia.query.MorphiaCursor`

Open CoolLoong opened this issue 1 year ago • 3 comments

** Please ask your question and provide whatever background or supporting information you think might be relevant: ** why Query#iterator return dev.morphia.query.internal.MorphiaCursor instead of dev.morphia.query.MorphiaCursor

** Please complete the following information: ** Server Version: 7.0.9 Driver Version: 4.11.2 Morphia Version: 2.4.4

CoolLoong avatar Jun 02 '24 06:06 CoolLoong

MapperOptions#Builder is still tagged deprecated and forRemoval in 2.4.4

CoolLoong avatar Jun 02 '24 06:06 CoolLoong

Yes. and the docs for that method list the new approach to use.

evanchooly avatar Jul 19 '24 14:07 evanchooly

As for that return type, it was a mistake on the public API. If you remove internal from the package name on your import, it should work just fine. The internal version was moved to a public package.

evanchooly avatar Jul 19 '24 14:07 evanchooly