Skip to content

Commit

Permalink
🔥 remove npm lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin committed May 26, 2023
1 parent e55e061 commit c26c617
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4,280 deletions.
8 changes: 4 additions & 4 deletions examples/nextjs-app/app/api/graphql/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createYoga, createSchema } from 'graphql-yoga'

const yoga = createYoga({
const { handleRequest } = createYoga({
graphqlEndpoint: '/api/graphql',
schema: createSchema({
typeDefs: /* GraphQL */ `
Expand All @@ -16,9 +16,9 @@ const yoga = createYoga({
},
}),
fetchAPI: {
Response: Response,
Request: Request,
Response,
Request,
},
})

export { yoga as GET, yoga as POST }
export { handleRequest as GET, handleRequest as POST }
Loading

0 comments on commit c26c617

Please sign in to comment.