Skip to content

Filtering fails on tableEntries

Query

Query itself

query Guide($where: OrganismWhere) {
  tableEntries {
    guide {
      id
    }
    organism(where: $where) {
      id
    }
  }
}

Variables

{
  "where": {
    "id": 9606
  }
}

Expected result

List of guides limited to taxid 9606

Obtained result

This query fails with an error "message": "Cannot return null for non-nullable field TableEntry.organism."

The filtering doesn't works and filter only on organism(where: $where) { id } part instead of table part. Related to #2