JS Api DB select types
# help-and-questions
j
Hi I'm doing a nested query that looks like this ``.select(, lesson:lesson_id(, course: course_id(*))); `` But i'm getting a typeScript error later in my code that is saying course can be of type single or array. How do I either tell typescript or supabase that this is a many to one relationship and course will should always be a single instance rather than an array?