garyaustin
07/25/2022, 7:04 PMzaheeratwork
07/25/2022, 7:08 PMdrivers
but the column name is driver
in driver_locations
table which references id column of drivers
table, thats why I am using the driver
column. Should I rename the foreign key column to drivers and try?garyaustin
07/25/2022, 7:09 PMzaheeratwork
07/25/2022, 7:11 PMzaheeratwork
07/25/2022, 7:13 PMlet { data, error, status } = await supabase
.from('driver_locations')
.select(id, lat, lng, driver)
then I get the id column only returned
but as soon as I try selecting other columns I get null as shown earlergaryaustin
07/25/2022, 7:14 PMzaheeratwork
07/25/2022, 7:15 PMgaryaustin
07/25/2022, 7:15 PMzaheeratwork
07/25/2022, 7:15 PMzaheeratwork
07/25/2022, 7:15 PMgaryaustin
07/25/2022, 7:18 PMNOTIFY pgrst, 'reload schema'
in the SQL window.zaheeratwork
07/25/2022, 7:19 PM*
)` produces thiszaheeratwork
07/25/2022, 7:19 PMzaheeratwork
07/25/2022, 7:23 PMgaryaustin
07/25/2022, 7:24 PM.select('*, drivers(*)')
is how I do it. But I think you're right driver should work also.zaheeratwork
07/25/2022, 7:26 PMgaryaustin
07/25/2022, 7:27 PMzaheeratwork
07/25/2022, 7:27 PMgaryaustin
07/25/2022, 7:28 PMzaheeratwork
07/25/2022, 7:29 PMzaheeratwork
07/25/2022, 7:30 PMzaheeratwork
07/25/2022, 7:30 PM