KHRM
Explore posts from serversPPrisma
•Created by KHRM on 10/3/2024 in #help-and-questions
Sorting by Relations
Hello, I am trying to introduce infinite scrolling im my application but I am running into an issue.
I am using Prisma ORM with sqlite through Turso
here is what I curently have
I sort the
events
after I get them, but if I am only grabbing 5 results at a time, its only going to sort those 5 (which means it may be sorted within itself, but it might not be the 5 earliest events)
here is a simplified version of my schema
How can I get all events sorted by their first event date, whcih is sorted by their date
example query result
note eventDates array may not necessarily be in order but this is covered by
38 replies
DTDrizzle Team
•Created by KHRM on 5/5/2024 in #help
Auth.js (next-auth) with Drizzle Provider Typescript
Hello so in the guide for the drizzle provider for Auth.js (next-auth) it says we can override the tables
for example if i want to give me my users table a password and role field
but then i run into a typescript error since the tables are typed in a specific way inside the adapter itself
4 replies
KKinde
•Created by KHRM on 4/11/2024 in #💻┃support
useKindeBrowserClient shows error
Hello,
I am using the useKindeBrowser client to recieve the
isAuthenticated
property
however when i am not logged in on the home page there is an error shown in the console.log is this intended behavior?, i just started my project and it already feels wrong haha (error is not shown if i am logged in)
2 replies