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

feat: structured output #676

Merged

Commits on Jul 22, 2021

  1. feat: structured output

    This commit adds a global `--json` flag that structures the output of Rover like so:
    
    **success:**
    
    {
      "data": {
        "sdl": {
          "contents": "type Person {\n  id: ID!\n  name: String\n  appearedIn: [Film]\n  directed: [Film]\n}\n\ntype Film {\n  id: ID!\n  title: String\n  actors: [Person]\n  director: Person\n}\n\ntype Query {\n  person(id: ID!): Person\n  people: [Person]\n  film(id: ID!): Film!\n  films: [Film]\n}\n",
          "type": "graph"
        }
      },
      "error": null
    }
    
    **errors:**
    
    {
      "data": null,
      "error": {
        "message": "Could not find subgraph \"products\".",
        "suggestion": "Try running this command with one of the following valid subgraphs: [people, films]",
        "code": "E009"
      }
    }
    EverlastingBugstopper committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    ab64ba2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61045a4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    80c6e43 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b9c74bc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3f62257 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cc4dad2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    92f9ce4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1e089b4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b998239 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2021

  1. Configuration menu
    Copy the full SHA
    5bf3550 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b52c70 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2c5c12 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4e66dba View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    14e59ad View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    291c81a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5747172 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2021

  1. Configuration menu
    Copy the full SHA
    fdceb28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea99465 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3dc6070 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4806738 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    94b44cf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f38617d View commit details
    Browse the repository at this point in the history