Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Update schema editor abilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Meschreiber committed Sep 25, 2024
1 parent 6fa5736 commit ea1199b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/content/graphos/delivery/schema-proposals/creation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,17 @@ You can directly edit one or more subgraph schemas from a proposal's **Editor**
alt="Schema proposals editor in GraphOS Studio"
/>

To start a new subgraph, click **+Add new** from the subgraph schema selector in the left navigation.
You can also delete existing subgraphs and rename newly created ones by clicking the **•••** menu to the right of a subgraph's name.
The proposals editor is backed by Apollo's language server, meaning it provides features like autocomplete, hovering over types and directives for more information, and syntax and schema validation.

The editor also lets you run composition on your proposed changes to uncover composition errors before you finalize your proposal.
To run composition, click the icon with three boxes in the top right of the editor.
Next to the button, you can toggle on **Compose on change** so that composition automatically runs on every change.

<Note>

For extremely large and complex schemas, you may want to keep auto-composition off so as to not slow your browser's performance.

Check failure on line 97 in src/content/graphos/delivery/schema-proposals/creation.mdx

View workflow job for this annotation

GitHub Actions / lint docs

[vale] reported by reviewdog 🐶 [Apollo.Auto] In general, don't hyphenate 'auto-composition'. Raw Output: {"message": "[Apollo.Auto] In general, don't hyphenate 'auto-composition'.", "location": {"path": "src/content/graphos/delivery/schema-proposals/creation.mdx", "range": {"start": {"line": 97, "column": 63}}}, "severity": "ERROR"}

</Note>

### Lint changes

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ea1199b

Please sign in to comment.