chore(docs): readme update -- fix code sample to include ".ts" in module path (#998)

This commit is contained in:
Ella Nan 2021-10-26 21:47:51 -04:00 committed by GitHub
parent 2934d6d38c
commit 02015ede84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ import * as Path from 'path'
Nexus.makeSchema({
contextType: {
module: Path.join(__dirname, './path/to/contextModule'),
module: Path.join(__dirname, './path/to/contextModule.ts'),
alias: 'ContextModule',
export: 'Context'
},