Skip to content

Commit 3dbec57

Browse files
authored
Merge pull request #7945 from apollographql/eh/docs/del-preserve-line
docs: delete preserve-line comments
2 parents 09f1b75 + 70adcdf commit 3dbec57

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/source/getting-started.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ The above `start` script tells TypeScript to compile your code into JavaScript b
119119

120120
#### Set up with JavaScript
121121

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

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

155157
```ts title="index.ts"
156-
import { ApolloServer } from '@apollo/server'; // preserve-line
157-
import { startStandaloneServer } from '@apollo/server/standalone'; // preserve-line
158+
import { ApolloServer } from '@apollo/server';
159+
import { startStandaloneServer } from '@apollo/server/standalone';
158160

159161
// A schema is a collection of type definitions (hence "typeDefs")
160162
// that together define the "shape" of queries that are executed against

docs/source/using-federation/apollo-subgraph-setup.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ We also need to require the `buildSubgraphSchema` function from this package in
6969
<MultiCodeBlock>
7070

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

7575
</MultiCodeBlock>

0 commit comments

Comments
 (0)