This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -euo pipefail | |
# This script performs a subgraph check and generates a markdown file from Rover's JSON output | |
# Change the following line to refer to your graph ref, schema, and subgraph name | |
CHECK_OUTPUT=$(rover subgraph check my-graph --schema ./products.graphql --name products --output json) || true | |
CHECK_SUCCESS=$(echo $CHECK_OUTPUT | jq '.data.success') | |
if [ $CHECK_SUCCESS = "true" ]; then |