Fabian B.
09/11/2021, 9:40 AMtdwcks
09/11/2021, 10:21 AMPossible unhandled Promise Rejection (id: 0): TypeError: _initSupabase.supabase.from('ingredients').select('name').textSearch is not a function. (In _initSupabase.supabase.from('ingredients').select('name').textSearch("'orange' & 'apple'", {
config: 'english'
})
I hard coded my search values to see if I could get it working - but no luck!
` const searchIngredients = async () => {
const { data: items, error } = await supabase
.from('ingredients')
.select('name')
.textSearch('name', 'orange' & 'apple'
, {
config: 'english'
})
if (error) console.log('error', error)
else setIngredients(items!)
}`Fabian B.
09/11/2021, 11:01 AMconst { data: items, error } = await supabase
.from('ingredients')
.select('name')
.textSearch('name', `'orange' & 'apple'`, {
config: 'english'
})
Max52
09/11/2021, 12:10 PMPoypoypoy
09/11/2021, 12:22 PMsilentworks
09/11/2021, 12:30 PMbokolesnik
09/11/2021, 2:28 PMnkmnz
09/11/2021, 2:45 PMusers
contains public fields, that can be viewed by anyone, as well as private fields, that can only be read and modified by the user who owns the profile? For this easy example, I could still think about an easy solution: creating a profiles_public
and a profiles_private
table, but then my second question comes into play: can I use the rest-api for a user and his public profile in a single roundtrip to supabase?Scott P
09/11/2021, 2:52 PMprivilege_type
and grantee
.
Alternatively, allow SELECT
only via RLS, and then use functions to allow users to update specific columns.Prodigy7kX
09/11/2021, 3:43 PMnkmnz
09/11/2021, 3:50 PMsilentworks
09/11/2021, 4:08 PMwaptik
09/11/2021, 4:13 PM23797.5
which is a monetary value in cents, which data type should i use in the UI?
I initially chose int8
but getting this error invalid input syntax for type bigint: "23797.5"
now.Prodigy7kX
09/11/2021, 4:14 PMProdigy7kX
09/11/2021, 4:15 PMScott P
09/11/2021, 4:15 PMwaptik
09/11/2021, 4:17 PMwaptik
09/11/2021, 4:17 PMfloat8
thenProdigy7kX
09/11/2021, 4:17 PMwaptik
09/11/2021, 4:18 PMfloat8
Prodigy7kX
09/11/2021, 4:19 PMwaptik
09/11/2021, 4:22 PMRichCorbs
09/11/2021, 10:39 PMauth.signUp(...)
) without getting logged out myself. Any ideas? It seems to be returning a session and logging me out even though I have email confirmation enabled in the UI.Eagle
09/12/2021, 1:06 AMEagle
09/12/2021, 1:07 AMSduu_
09/12/2021, 1:12 AMhuga
09/12/2021, 1:58 AMacupofjose
09/12/2021, 2:56 AMAlanK
09/12/2021, 3:02 AMhuga
09/12/2021, 3:05 AM