reectrix
reectrix

Reputation: 8619

Would 'findAll()' in MongoDB ever return a null result in Grails?

I know this might seem like an odd question, but was just wondering if anyone knew (or came across) a case where this has happened. Debugging a server issue where this might be happening and wanted to either eliminate it as a cause, or look into it further.

And also, if the answer is yes, why would this happen?

Upvotes: 0

Views: 66

Answers (1)

Burt Beckwith
Burt Beckwith

Reputation: 75671

It shouldn't - all query methods that can return multiple results return a List (typically just a vanilla java.util.ArrayList) which is either empty or has results. If you're getting a null result, something's very broken.

Upvotes: 1

Related Questions