Skip to content

Not to return an error as a whole if some queries fail #37

@narumincho

Description

@narumincho

一部のクエリが失敗しても全体としてエラーを返さないように

query ExampleQuery($accountId: AccountId!) {
  account(id: $accountId) {
    id
    name
    birthDate
  }
}
{
  "data": {
    "account": {
      "id": "53ab13fdb5ae8b4caedcbdfe64fd679d",
      "name": "開発用アカウントB",
      "birthDate": null
    }
  },
  "errors": [
    {
      "message": "誕生日は、同じチームに所属しているアカウントのみ見ることができる",
      "locations": [
        {
          "line": 5,
          "column": 5
        }
      ],
      "path": [
        "account",
        "birthDate"
      ],
      "extensions": {
        "code": "accessDeniedError"
      }
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions