File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ The above `start` script tells TypeScript to compile your code into JavaScript b
119
119
120
120
#### Set up with JavaScript
121
121
122
+ > All code examples in this getting started guide are in TypeScript. You must transpile them to JavaScript.
123
+
122
124
If you are using JavaScript, create a ` index.js ` file that will contain ** all** of the code for our example application:
123
125
124
126
``` bash
@@ -153,8 +155,8 @@ Open `index.ts` in your preferred code editor and paste the following into it:
153
155
<MultiCodeBlock >
154
156
155
157
``` 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' ;
158
160
159
161
// A schema is a collection of type definitions (hence "typeDefs")
160
162
// that together define the "shape" of queries that are executed against
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ We also need to require the `buildSubgraphSchema` function from this package in
69
69
<MultiCodeBlock >
70
70
71
71
``` ts title="index.ts"
72
- import { buildSubgraphSchema } from ' @apollo/subgraph' ; // preserve-line
72
+ import { buildSubgraphSchema } from ' @apollo/subgraph' ;
73
73
```
74
74
75
75
</MultiCodeBlock >
You can’t perform that action at this time.
0 commit comments