diff --git a/src/components/Page.js b/src/components/Page.js
index 9b9419c27..33df6aeec 100644
--- a/src/components/Page.js
+++ b/src/components/Page.js
@@ -410,7 +410,7 @@ export default function Page({file}) {
whiteSpace: 'normal'
}
},
- '>': {
+ [['>', '> details >']]: {
':not(a):not(:last-child)': {
mb: 6
},
diff --git a/src/content/basics/devtools/editor-plugins.mdx b/src/content/basics/devtools/editor-plugins.mdx
index ed74cc275..7a14771f8 100644
--- a/src/content/basics/devtools/editor-plugins.mdx
+++ b/src/content/basics/devtools/editor-plugins.mdx
@@ -14,10 +14,11 @@ The Apollo [VS Code extension](https://marketplace.visualstudio.com/items?itemNa
The extension enables you to:
-- Add [syntax highlighting](#syntax-highlighting) for GraphQL files and `gql` templates inside JavaScript files
+- Add [syntax highlighting](#syntax-highlighting) for GraphQL files and gql templates inside JavaScript files
- Get instant feedback and [intelligent autocomplete](#intelligent-autocomplete) for fields, arguments, types, and variables as you write queries
-- Manage client side schema alongside remote schema
+- Manage client-side schema alongside remote schema
- See [performance information](#performance-insights) inline with your query definitions
+- Extra features to help you with [supergraph editing](#supergraph-editing)
- Validate field and argument usage in operations
- [Navigate projects more easily](#navigating-projects) with jump-to and peek-at definitions
- Manage [client-only](#client-only-schemas) schemas
@@ -25,105 +26,174 @@ The extension enables you to:
## Getting started
-To get all the benefits of the VS Code experience, it's best to link the schema that is being developed against before installing the extension. The best way to do that is by [publishing a schema](/graphos/delivery/publishing-schemas/) to the Apollo schema registry. After that's done:
+The VS Code plugin must be linked to a published or local schema. To do so, create an `apollo.config.json` file at the root of the project.
+Alternatively, you can create a `yaml`, `cjs`, `mjs`, or `ts` file with the same configuration.
-1. Create an `apollo.config.js` file at the root of the project.
- Alternatively, you can create a `cjs`, `mjs`, or `ts` file with the same configuration.
-2. Obtain a [Personal API key](/graphos/api-keys) from GraphOS Studio.
+For the contents of this configuration file, select one of these options:
-### Setting up an Apollo config
+### Configure extension for client development with schemas published to Apollo GraphOS
-For the VS Code plugin to know how to find the schema, it needs to be linked to either a published schema or a local one. To link a project to a published schema, edit the `apollo.config.js` file to look like this:
+
+Expand for instructions.
+
-```js
-module.exports = {
- client: {
- service: 'my-graphql-app'
+To get all the benefits of the VS Code experience, it's best to link the schema being developed before installing the extension. The best way to do that is by [publishing a schema](https://www.apollographql.com/docs/graphos/delivery/publishing-schemas/) to the [GraphOS schema registry](https://www.apollographql.com/docs/graphos#core-features).
+
+After that's done, edit the `apollo.config.json` file to look like this:
+
+```json
+{
+ "client": {
+ "service": "graphos-graph-name"
}
-};
+}
```
The `service` name is the name of the graph you've created in [GraphOS Studio](https://studio.apollographql.com).
See [additional configuration options](#additional-apollo-config-options).
-### Setting up the `.env` file
-
-To authenticate with GraphOS Studio to pull down your schema, create a `.env` file in the same directory as the `apollo.config.js` file. This should be an untracked file (that is, don't commit it to Git).
+To authenticate with GraphOS Studio to pull down your schema, create an `.env` file in the same directory as the `apollo.config.json` file. The `.env` file should be untracked—that is, don't commit it to Git.
-Then go to your [User Settings page](https://studio.apollographql.com/user-settings/api-keys?referrer=docs-content) in GraphOS Studio to create a new Personal API key.
+Then, go to your [User Settings page](https://studio.apollographql.com/user-settings/api-keys?referrer=docs-content) in GraphOS Studio to create a new personal API key.
+Expand for instructions.
+
+
+The extension can integrate with the [Rover CLI](https://www.apollographql.com/docs/rover/) to help you design supergraph schemas with additional support for Apollo Federation.
+
+Ensure you've [installed](https://www.apollographql.com/docs/rover/getting-started) and [configured](https://www.apollographql.com/docs/rover/configuring) the [latest Rover release](https://github.com/apollographql/rover/releases).
+
+Next edit your `apollo.config.json` to look like this:
+
+```json
+{
+ "rover": {
+ // optional, if your rover binary is in PATH it will automatically be detected
+ "bin": "/path/to/rover",
+ // optional, defaults to `supergraph.yaml` in the folder of the configuration file
+ "supergraphConfig": "/path/to/supergraph.yaml",
+ // optional, defaults to the Rover default profile
+ "profile": ""
+ }
+}
+```
+
+Since all these options are optional, you can specify only the `rover` key to indicate you're using Rover for schema development rather than client development:
+
+```json
+{
+ "rover": {}
+}
+```
+
+Afterward, reload VS Code. The Apollo extension will start using Rover to help you build your supergraph.
+
+
+Expand for instructions.
+
-```js
-module.exports = {
- client: {
- service: {
- name: 'my-graphql-app',
- url: 'http://localhost:4000/graphql'
+To experiment with designs under active development, you can link the editor to a locally running version of a schema. Link the `apollo.config.json` file to a local service definition like so:
+
+```json
+{
+ "client": {
+ "service": {
+ "name": "my-graphql-app",
+ "url": "http://localhost:4000/graphql"
}
}
-};
+}
```
-Linking to the local schema won't provide all features, such as switching graph variants and performance metrics.
+Linking to local schemas won't provide all extension features, such as switching graph variants and performance metrics.
+
+
+Expand for instructions.
+
You might not always have a running server to link to, so the extension also supports linking to a local schema file.
This is useful for working on a schema in isolation or for testing out new features.
-To link to a local schema file, add the following to the `apollo.config.js` file:
+To link to a local schema file, add the following to the `apollo.config.json` file:
-```js
-module.exports = {
- client: {
- service: {
+```json
+{
+ "client": {
+ "service": {
// can be a string pointing to a single file or an array of strings
- localSchemaFile: './path/to/schema.graphql'
+ "localSchemaFile": "./path/to/schema.graphql"
}
}
-};
+}
```
-### Client-only schemas
+
-### Inline errors and warnings
+### Inline errors and ../img/editors/warnings
-Editors can use local or published schemas to validate operations before running them. Syntax errors, invalid fields or arguments, and even deprecated fields instantly appear as errors or warnings right in your editor, ensuring all developers are working with the most up-to-date production schemas.
+VS Code can use local or published schemas to validate operations before running them. **Syntax errors**, **invalid fields or arguments**, and even **deprecated fields** instantly appear as errors or warnings in your editor, ensuring your entire team is working with the most up-to-date production schemas.
### Navigating projects
-Navigating large codebases can be difficult, but the Apollo GraphQL extension makes this easier. Right-clicking on any field in operations or schemas gives you the ability to jump to (or peek at) definitions, as well as find any other references to that field in your project.
+Navigating large codebases can be difficult, but the Apollo GraphQL extension makes this easier. Right-clicking on any field in operations or schemas allows you to jump to (or peek at) definitions and find any other references to that field in your project.
-### Graph variant switching
+
-If problems persist or the error messages are unhelpful, open an [issue](https://github.com/apollographql/vscode-graphql/issues) in the `vscode-graphql` repository.
+If problems persist or the error messages are unhelpful, open an [issue](https://github.com/apollographql/vscode-graphql/issues)
+in the `vscode-graphql` repository.
## Additional Apollo config options
@@ -228,11 +314,11 @@ _Optional_ - custom tagged template literal.
When using GraphQL with JavaScript or TypeScript projects, it is common to use the `gql` tagged template literal to write out operations. Apollo tools look through your files for the `gql` tag to extract your queries, so if you use a different template literal, you can configure it like so:
-```js
-module.exports = {
- client: {
- tagName: "graphql", // highlight-line
- service: ...
+```json
+{
+ "client": {
+ "tagName": "graphql",
+ "service": //...
}
-};
+}
```
diff --git a/src/content/basics/img/editors/federation-directive-hover.png b/src/content/basics/img/editors/federation-directive-hover.png
new file mode 100644
index 000000000..0da841f01
Binary files /dev/null and b/src/content/basics/img/editors/federation-directive-hover.png differ