Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Community object is returned when id is not found #39

Open
asavin opened this issue Jul 18, 2016 · 0 comments
Open

Community object is returned when id is not found #39

asavin opened this issue Jul 18, 2016 · 0 comments

Comments

@asavin
Copy link
Contributor

asavin commented Jul 18, 2016

{
  community(id:"V4OEhiMAAEx6RNO") {
    title
  }
}

Even when requesting a non existing community, you will still get a response with fields filled with nulls. Furthermore, if you request events for that non existing community, you will get a proper error.

{
  "data": {
    "community": {
      "title": null,
      "events": null
    }
  },
  "errors": [
    {
      "message": "Cannot read property 'map' of undefined",
      "locations": [
        {
          "line": 4,
          "column": 5
        }
      ]
    }
  ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant