-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent behavior of present when no rows are found #47
Comments
Could you tell me what is the actual value of the result prior you pass it to |
In order to demonstrate khrt#47
The object passed to I've added a search feature to your music demo app to demonstrate this, see my fork at https://github.com/davel/Raisin Multiple results, array returned as expected,
No results,
|
I guess that happens because DBIx::Class's I'll take a look at it later, or if you can dump the |
I thought that might be the case too. However, if |
Yes, that fixes my problem, thank you. |
If the result of a DBIx::Class query given to
present
returns no rows, the generated JSON isundef
, rather than an empty array. Can the behaviour be changed to make it return[]
, so as to make the behaviour consistent?Many thanks,
Dave
The text was updated successfully, but these errors were encountered: