Skip to content

Commit

Permalink
Merge pull request #7945 from apollographql/eh/docs/del-preserve-line
Browse files Browse the repository at this point in the history
docs: delete preserve-line comments
  • Loading branch information
shorgi authored Oct 23, 2024
2 parents 09f1b75 + 70adcdf commit 3dbec57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/source/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ The above `start` script tells TypeScript to compile your code into JavaScript b

#### Set up with JavaScript

> All code examples in this getting started guide are in TypeScript. You must transpile them to JavaScript.
If you are using JavaScript, create a `index.js` file that will contain **all** of the code for our example application:

```bash
Expand Down Expand Up @@ -153,8 +155,8 @@ Open `index.ts` in your preferred code editor and paste the following into it:
<MultiCodeBlock>

```ts title="index.ts"
import { ApolloServer } from '@apollo/server'; // preserve-line
import { startStandaloneServer } from '@apollo/server/standalone'; // preserve-line
import { ApolloServer } from '@apollo/server';
import { startStandaloneServer } from '@apollo/server/standalone';

// A schema is a collection of type definitions (hence "typeDefs")
// that together define the "shape" of queries that are executed against
Expand Down
2 changes: 1 addition & 1 deletion docs/source/using-federation/apollo-subgraph-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ We also need to require the `buildSubgraphSchema` function from this package in
<MultiCodeBlock>

```ts title="index.ts"
import { buildSubgraphSchema } from '@apollo/subgraph'; //preserve-line
import { buildSubgraphSchema } from '@apollo/subgraph';
```

</MultiCodeBlock>
Expand Down

0 comments on commit 3dbec57

Please sign in to comment.