Skip to content
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

Odoo graphql query returns Null tasks #19

Open
gianlucadonato opened this issue Jun 2, 2023 · 0 comments
Open

Odoo graphql query returns Null tasks #19

gianlucadonato opened this issue Jun 2, 2023 · 0 comments
Assignees

Comments

@gianlucadonato
Copy link

gianlucadonato commented Jun 2, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants