Kellen Mace
09/21/2021, 11:06 AMrule_channels
Kellen Mace
09/21/2021, 11:06 AMrules
and get data about the channels
related to them without a problem, using this syntax:
js
const response = await supabase
.from('rules')
.select(`
id,
words,
rule_channels:channels( title, thumbnail_url )
`);
Kellen Mace
09/21/2021, 11:07 AMmentions
DB table that has a column with a foreign key to the rule
table's id
column however, the query above begins throwing an error. The message prompts me to disambiguate the request:Kellen Mace
09/21/2021, 11:07 AMKellen Mace
09/21/2021, 11:07 AMKellen Mace
09/21/2021, 11:07 AMTessellated
09/21/2021, 11:19 AMuser
09/21/2021, 11:43 AMuser
09/21/2021, 11:44 AMKellen Mace
09/21/2021, 11:53 AMpatrik
09/21/2021, 2:14 PMSite URL
and Additional Redirect URLs
so it works both on localhost and live. Anybody knows how to do that?
const { user, session, error } = await supabase.auth.signIn({
provider: 'github'
}, {
redirectTo: 'https://example.com/welcome'
})
Tessellated
09/21/2021, 2:19 PMTessellated
09/21/2021, 2:20 PMGandalfG
09/21/2021, 2:25 PMMattias
09/21/2021, 2:38 PMpetrlr14
09/21/2021, 3:44 PMtypescript
export const getAllBoards = async () => {
const { data, error } = await supabase.from<BoardType>('board').select('*');
if (error) {
console.log(error);
return [];
}
return data;
};
And here's my getServerSideProps
typescript
export const getServerSideProps: GetServerSideProps = async (context) => {
const { user } = await supabase.auth.api.getUserByCookie(context.req);
if (user) {
const boards = await getAllBoards();
return {
props: {
_boards: boards,
},
};
}
return {
props: {
_boards: [],
},
};
};
silentworks
09/21/2021, 3:59 PMMarky
09/21/2021, 4:57 PMpg_dump: error: query failed: ERROR: permission denied for sequence refresh_tokens_id_seq
pg_dump: error: query was: SELECT last_value, is_called FROM auth.refresh_tokens_id_seq
Scott P
09/21/2021, 5:19 PMMarky
09/21/2021, 5:28 PMivanq3w
09/21/2021, 7:20 PMNOT supabase.from('posts').select('*, author(*), publisher(*)')
LIKE THIS supabase.from('posts').select('*, *')
Marky
09/21/2021, 11:38 PMMiguel2390d
09/22/2021, 1:42 AMMiguel2390d
09/22/2021, 1:42 AMMiguel2390d
09/22/2021, 2:06 AMMiguel2390d
09/22/2021, 2:06 AMMarky
09/22/2021, 4:36 AMjason-lynx
09/22/2021, 5:12 AMpostgres
via the SQL editor so that error doesn't occur (same for subsequent permission errors on any db objects). you might wanna remove them again afterjason-lynx
09/22/2021, 5:13 AMMarky
09/22/2021, 5:31 AM