mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-09 01:35:18 +02:00
Add query lint and check commands
This commit is contained in:
parent
4abe9e3627
commit
1bf55fa52d
7 changed files with 1088 additions and 9 deletions
|
|
@ -47,6 +47,9 @@ and configure the matching `bearer_token_env` in `omnigraph.yaml`.
|
|||
## Runs, Policy, And Diagnostics
|
||||
|
||||
```bash
|
||||
omnigraph query lint --query ./queries.gq --schema ./schema.pg --json
|
||||
omnigraph query check --query ./queries.gq ./repo.omni --json
|
||||
|
||||
omnigraph schema plan --schema ./next.pg ./repo.omni --json
|
||||
omnigraph schema apply --schema ./next.pg ./repo.omni --json
|
||||
omnigraph policy validate --config ./omnigraph.yaml
|
||||
|
|
@ -59,6 +62,10 @@ omnigraph run publish --uri ./repo.omni <run-id> --json
|
|||
omnigraph run abort --uri ./repo.omni <run-id> --json
|
||||
```
|
||||
|
||||
`query lint` and `query check` are the same command surface. In v1, repo-backed
|
||||
lint uses local or `s3://` repo URIs; HTTP targets are only supported when you
|
||||
also pass `--schema`.
|
||||
|
||||
## Config
|
||||
|
||||
`omnigraph.yaml` lets the CLI and server share named targets, defaults, and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue