Repository Query Method - NotNull keyword not returning anything
Hi
I'm trying to create a repository query method that uses the keyword NotNull, for example
List<Wine> findByWineNameNotNull();
But it's not returning any data, but I know there's matching data and a simple mongodb query to run the following
db.wine.find({"wineName": {"$ne": null}}, {wineName: 1});
works fine and returns the expected results.
Has anybody used the NotNull (or the IsNotNull) keyword and got it to work?
Have I missed something?
Thanks in advance
Derek