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

graphql-composer does not handle nesting when #69

Open
mikaelkaron opened this issue Dec 16, 2024 · 0 comments
Open

graphql-composer does not handle nesting when #69

mikaelkaron opened this issue Dec 16, 2024 · 0 comments

Comments

@mikaelkaron
Copy link
Contributor

This query:

{
  artists {
    id
    tags(where: { id: { eq: "1" } }) {
      id
    }
  }
}

works fine if run directly on the service:

{
  "data": {
    "artists": [
      {
        "id": "101",
        "tags": [
          {
            "id": "1"
          }
        ]
      },
      {
        "id": "102",
        "tags": []
      },
      {
        "id": "201",
        "tags": []
      },
      {
        "id": "301",
        "tags": []
      },
      {
        "id": "401",
        "tags": []
      }
    ]
  }
}

but fails if executed on the composer:

{
  "data": {
    "artists": [
      {
        "id": "101",
        "tags": [
          {
            "id": "1"
          }
        ]
      },
      {
        "id": "102",
        "tags": [
          {
            "id": "2"
          }
        ]
      },
      {
        "id": "201",
        "tags": []
      },
      {
        "id": "301",
        "tags": []
      },
      {
        "id": "401",
        "tags": []
      }
    ]
  }
}

reproducer repo: https://github.com/mikaelkaron/platformatic-graphql-composer/tree/bug/deep-where

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

1 participant