dailylurker
08/12/2021, 12:25 PMburggraf
08/12/2021, 2:29 PMinsert
data but not be able to read (select
) -- sort of a logging system.public saveGameData = async (gamedata: GameData) => {
const { data, error } = await supabase
.from('game_data')
.insert(gamedata,{returning: 'minimal'});
return { data, error };
}
returning: 'minimal'
which basically says "Just insert the data, I don't need you to read back info from the insert process."dailylurker
08/13/2021, 7:14 AMburggraf
08/13/2021, 12:39 PMreturning: 'minimal'
part bypasses the read after the insert, but you can't bypass the read policy AFAIK.