10000 Filtering by null in nested column not possible using API · Issue #2516 · nocodb/nocodb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Filtering by null in nested column not possible using API #2516
Closed
@pavvel11

Description

@pavvel11
Node: **v14.18.1**
Arch: **x64**
Platform: **freebsd**
Docker: **false**
Database: **pg**
ProjectOnRootDB: **false**
RootDB: **pg**
PackageVersion: **0.92.0**

Steps To Reproduce

  1. Create two tables.
  2. Add the "Has Many" relation between two tables (Link To Another Record column)
  3. Add some records to both tables. At least two records in the child table - one related to parent and one with null in the foreign key column.
  4. Use API to get records from parent table which have empty relation.

It is not possible to filter records without relation using the parameter where=(child_id,is,null). There is always an empty response.
The same problem occurs when using "is null" filter in UI.

When where=(child_id,isnot,null) is passed as a parameter you get only records which have a relation with the child table - which is ok.

Expected Behavior
User should be able to filter out records from the parent table without relation.

Metadata

Metadata

Assignees

Labels

Status: ReproducibleAble to reproduce the issue based on the reporters' guideline.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0