Skip to content

Odoo graphql query returns Null tasks #19

@gianlucadonato

Description

@gianlucadonato

Current Behavior

If I execute this query for user 21 and project 35, I correctly receive in the result an empty tasks array as expected (see screenshot)

{
    ProjectProject(domain: [["id", "in", [35]]]) {
      id
      name
      tasks(domain: [["user_ids", "in", [21]], ["stage_id.id", "!=", 32 ]]) {
        id
        child_ids(domain: [["stage_id.id", "!=", 32 ]]) {
          id
        }
      }
    }
}
Screenshot 2023-06-02 at 15 28 15

.

BUT as soon as I add another projectId in the query (39 or any other projectId) then the tasks array for project 35 contains a null item, which is breaking the dapp.

See screenshot example:
Screenshot 2023-06-02 at 15 27 59

Expected Behavoir

Query result should not contains array with null items.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions