Skip to content

Commit

Permalink
Remove from hello-world
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Sep 21, 2022
1 parent 2c3b062 commit 6f97b26
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions examples/hello-world/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { createServer } = require('node:http')
const { createYoga, createSchema } = require('graphql-yoga')
const { useSofa, useSofaWithSwaggerUI } = require('@graphql-yoga/plugin-sofa')

const yoga = createYoga({
schema: createSchema({
Expand All @@ -22,13 +21,7 @@ const yoga = createYoga({
hello
}
`,
},
plugins: [
useSofaWithSwaggerUI({
basePath: '/api',
swaggerUIPath: '/swagger',
})
]
}
})

const server = createServer(yoga)
Expand Down

0 comments on commit 6f97b26

Please sign in to comment.