DT
Drizzle Teamβ€’14mo ago
Cory

Type error for eq()

I get Expected 1 arguments, but got 2. in a statement like this:
.where(and(eq(menu.id, form.data.id)), eq(menu.userId, session.userId));
.where(and(eq(menu.id, form.data.id)), eq(menu.userId, session.userId));
3 Replies
Cory
Coryβ€’14mo ago
for 'eq'
rphlmr ⚑
rphlmr βš‘β€’14mo ago
your 2 β€œeq” should be in the β€œand” parentheses πŸ˜‰
volks
volksβ€’14mo ago
Good catch, you're getting the expected 1 argument but got 2 for the .where