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 错误信息 #26

Open
excing opened this issue Feb 18, 2023 · 0 comments
Open

添加 GraphQL 错误信息 #26

excing opened this issue Feb 18, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@excing
Copy link
Contributor

excing commented Feb 18, 2023

为 GraphQL 查询、修改添加错误信息。

{
  "data": {  },
  "errors": [
    {
      "type": "NOT_FOUND",
      "path": [
        "user"
      ],
      "locations": [
        {
          "line": 12,
          "column": 3
        }
      ],
      "message": "Could not resolve to a User with the login of 'excing00'."
    },
    {
      "type": "NOT_FOUND",
      "path": [
        "repository"
      ],
      "locations": [
        {
          "line": 23,
          "column": 3
        }
      ],
      "message": "Could not resolve to a Repository with the name 'excing/ccc'."
    }
  ]
}

如上。

@excing excing added enhancement New feature or request help wanted Extra attention is needed labels Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant