JoshTheNerd
09/15/2021, 10:05 PMJoshTheNerd
09/15/2021, 10:06 PMJoshTheNerd
09/15/2021, 10:06 PMThomas B
09/15/2021, 10:07 PMtinjaw
09/16/2021, 12:02 AMUser-defined Enumerated Types
?Scott P
09/16/2021, 12:12 AMCREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');
https://www.postgresql.org/docs/9.1/datatype-enum.htmlSyns
09/16/2021, 12:43 AMstibbs
09/16/2021, 6:11 AM{{ .ConfirmationURL }}
. Is there anything else?thorwebdev
09/16/2021, 7:04 AMtemplate
and step through the different ones.patrik
09/16/2021, 7:32 AMReuben
09/16/2021, 8:47 AMnull
values? I tried with
.eq('date', null)
and
.eq('date', 'null')
'invalid input syntax for type date: "null"'
jason-lynx
09/16/2021, 9:08 AMReuben
09/16/2021, 9:31 AMMattias
09/16/2021, 11:08 AMReuben
09/16/2021, 11:24 AMsilentworks
09/16/2021, 12:11 PMReuben
09/16/2021, 12:14 PMthorwebdev
09/16/2021, 3:03 PMnyellin
09/16/2021, 4:04 PMeyk
09/16/2021, 4:22 PMfrubalu
09/16/2021, 5:39 PMconst { data, error } = await supabase
.from('packs')
.select(
`
*,
categories(*, category_items(*, item:item_id(*)))
`
)
.order('created_at', { ascending: true })
.order('created_at', { foreignTable: 'categories' })
.order('position', { foreignTable: 'category_items', ascending: false })
.eq('user_id', token.sub);
Essentially I am selecting from the packs table, all of the related categories, category_items and items. I'd like for the nested category_items to be ordered by position, however they're all coming in totally out of order for some reasonBwaldir
09/16/2021, 6:17 PMjon.m
09/16/2021, 7:58 PMjon.m
09/17/2021, 12:26 AMJoshTheNerd
09/17/2021, 1:34 AMJoshTheNerd
09/17/2021, 1:34 AMsilentworks
09/17/2021, 9:41 AMFlorinPop
09/17/2021, 9:53 AMFlorinPop
09/17/2021, 9:53 AMFlorinPop
09/17/2021, 9:53 AM