question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[crnk-jpa] filter by null value

See original GitHub issue

What is the best practice to filter a field by NULL ? In my tables there are plenty of fields with a NULL value. I’d like to request a resource with filter[lastEdited] = NULL` . Is there any way to do so?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
remmeiercommented, Feb 22, 2018

yes, we can also just get started with that null.

0reactions
mohlekcommented, Jun 21, 2018

😍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crnk Documentation
Enforces a 404 response should a repository return a null value. This is common practice, but not strictly mandated by the JSON:API ...
Read more >
Filtering null values in JPQL - Stack Overflow
I think the SQL should be @Query("SELECT c FROM Product c WHERE 1=1 " + " or (:name is null or c.name =...
Read more >
crnk-io/Lobby - Gitter
in general that all seems independent of crnk on the JPA/DB layer. ... When the Id field is null, the self link generated...
Read more >
Creating REST with CRNK, Part 2 - Medium
The parameter is JpaModuleConfig which let you configure the CRNK ... The filter above doesn't do anything more than checking the value that ......
Read more >
Spring Data JPA and Null Parameters - Baeldung
In some cases, when we search for records by parameters, we want to find rows with null as the field value. Other times,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found