Skip to content
This repository was archived by the owner on May 10, 2018. It is now read-only.

Commit dcd6980

Browse files
ojkellykbrandwijk
authored andcommitted
feat(prisma): export typeDefs (#53)
Closes prisma-labs/prisma-binding#91
1 parent b9197da commit dcd6980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generators/prisma-ts.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function renderHeader(schema: string): string {
2626
return `import { Prisma as BasePrisma, BasePrismaOptions } from 'prisma-binding'
2727
import { GraphQLResolveInfo } from 'graphql'
2828
29-
const typeDefs = \`
29+
export const typeDefs = \`
3030
${schema}\``
3131
}
3232

@@ -65,4 +65,4 @@ ${renderMainSubscriptionMethodFields(subscriptionType.getFields())}
6565
: ''
6666
}
6767
}`
68-
}
68+
}

0 commit comments

Comments
 (0)