Got a weird issue. Querying all users works fine, ...
# orm-help
j
Got a weird issue. Querying all users works fine, but when querying a single user by id it returns null - even though the id is correct.
Copy code
query {
  users {
    id
    email
  }
}
gives:
Copy code
{
  "data": {
    "users": [
      {
        "id": "63f14583-de97-429a-bfc0-c296eb636e6d",
        "email": "<mailto:christian@jenkins.no|christian@jenkins.no>"
      }
    ]
  }
}
but this:
Copy code
query {
  user(where: {
    id: "63f14583-de97-429a-bfc0-c296eb636e6d"
  }) {
    id
    email
  }
}
gives:
Copy code
{
  "data": {
    "user": null
  }
}
Querying by only email works. Id and email are unique.