We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c02c5d commit 90c8cd9Copy full SHA for 90c8cd9
src/code/language-support/javascript/server/apollo-server.md
@@ -17,6 +17,19 @@ Then run `node server.js` with this code in `server.js`:
17
```js
18
import { ApolloServer } from "@apollo/server"
19
import { startStandaloneServer } from "@apollo/server/standalone"
20
+import { buildSchema } from "graphql"
21
+
22
+const schema = buildSchema(`
23
+ type Query {
24
+ hello: String
25
+ }
26
+`)
27
28
+const resolvers = {
29
+ Query: {
30
+ hello: () => "Hello World!",
31
+ },
32
+}
33
34
const server = new ApolloServer({
35
typeDefs,
0 commit comments