db.query not updating
Hey all! I recently refactored my schema to take advantage of the
findMany
and findFirst
functions. These are my collectionsTable
relations:
and a collection references those tables like so in the table setup:
and my query looks like this:
But I keep getting the error:
even though I'm only looking for collectionsTable.authorID
. Does drizzle have a cache I need to refresh? I was using collectionsTable.userID
before but renamed the column. I've ran drizzle-kit push
and there is nothing to change. Thanks in advance for any help as this query was working as a select with join tables before. Wondering if I should just revert...1 Reply
Try using a callback