Skip to content

Commit

Permalink
Docs: Correct an object's value in the tutorial
Browse files Browse the repository at this point in the history
In the ContextType Object, the value of `export` should be `Context` instead of `ContextModule` (see Line 133)
On line 62, the name of the exported interface is `Context`.

I have noticed that autocompletion of Prisma doesn't work because of the misspelling :)

When I checked the repository of the tutorial the value of `export` was correct.
https://github.com/graphql-nexus/tutorial/blob/e7a1988eded47a818398d14d823e45423ddeb3dd/api/schema.ts#L12
  • Loading branch information
niyabits authored Jan 29, 2021
1 parent cb1e17e commit f394ff1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const schema = makeSchema({
},
+ contextType: { // 1
+ module: join(__dirname, "./context.ts"), // 2
+ export: "ContextModule", // 3
+ export: "Context", // 3
+ },
})
```
Expand Down

0 comments on commit f394ff1

Please sign in to comment.