We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a15e4 commit 88da520Copy full SHA for 88da520
src/schema.ts
@@ -2,14 +2,15 @@ import { makeSchema } from "nexus";
2
import { join } from "path";
3
import * as types from "./graphql";
4
5
+
6
export const schema = makeSchema({
7
types,
8
outputs: {
- typegen: join(__dirname, "..", "nexus-typegen.ts"),
9
- schema: join(__dirname, "..", "schema.graphql"),
+ typegen: join(process.cwd(), "nexus-typegen.ts"),
10
+ schema: join(process.cwd(), "schema.graphql"),
11
},
12
contextType: {
- module: join(__dirname, "./context.ts"),
13
+ module: join(process.cwd(), "./src/context.ts"),
14
export: "Context",
15
-});
16
+});
0 commit comments