Skip to content

Commit 2557748

Browse files
committed
oh this isnt typesafe
1 parent ee91030 commit 2557748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/hackernews/src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const resolvers = {
7777
description: (parent: Link) => parent.description,
7878
url: (parent: Link) => parent.url,
7979
comments: (parent: Link, _: unknown, context: GraphQLContext) => {
80-
return context.db.select().from(comments).where(eq(links.id, parent.id));
80+
return context.db.select().from(comments).where(eq(comments.id, parent.id));
8181
},
8282
},
8383
Mutation: {

0 commit comments

Comments
 (0)