-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
When I run npm start It breaks with esModuleInterop
I've set esModuleInterop:true in tsconfig.json and it run ok
and when I try to perform the query
{
users{id}
}
[Nest] 72502 - 09/14/2020, 8:10:43 PM [ExceptionsHandler]
Invalid return this.prisma.user.findMany() invocation in
/Users/serg/workspace/nest-graphql-code-first/src/user/user.resolver.ts:11:29
7 constructor([object Object], prisma,[object Object], PrismaService) {}
8
9 @query((returns) => [User])
10 async users() {
→ 11 return this.prisma.user.findMany()
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some("no such table: dev.User"))) }) +6898ms
Metadata
Metadata
Assignees
Labels
No labels