You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for example, i have an items datatable with m2m relationship with branch (the pivot table is itemSafetyLevels, where columns = itemId, branchId, and safetyLevel).
i want to be able to update the safety level of an item for all branches in the row's sheet.
my current approach: for table query, include the safety level right away but this requires a lot of hacking around the type (im using drizzle, i just update those Item to ItemWithSafetyLevels but am still stuck with it especially with the useDataTable hook.
i also think of fetching relationships data when opening the sheet.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
for example, i have an items datatable with m2m relationship with branch (the pivot table is itemSafetyLevels, where columns = itemId, branchId, and safetyLevel).
i want to be able to update the safety level of an item for all branches in the row's sheet.
my current approach: for table query, include the safety level right away but this requires a lot of hacking around the type (im using drizzle, i just update those Item to ItemWithSafetyLevels but am still stuck with it especially with the useDataTable hook.
i also think of fetching relationships data when opening the sheet.
Beta Was this translation helpful? Give feedback.
All reactions