ترياق
05/14/2022, 1:14 PMNeedle
05/14/2022, 3:08 PMNinjaNuur
05/14/2022, 3:13 PMbatch_id: uuid PK
created_at: int4
inventory_item
batch_id: uuid FK
name: varchar
Is it possible to select all inventory_batch
and get all inventory_item
with the same batch_id for each row. Or do I have to make a separate call on inventory_item?locohost
05/14/2022, 3:24 PMian_
05/14/2022, 3:50 PMsupabase.auth.user().identities[0].identity_data.provider_id
within an RLS policy?stukennedy
05/14/2022, 11:17 PMstukennedy
05/14/2022, 11:25 PMvinciarts
05/15/2022, 1:07 AMirekrog
05/15/2022, 6:00 AMGraphQLError: Names must only contain [_a-zA-Z0-9] but "channels.delete" does not.
Needle
05/15/2022, 6:52 AMNeedle
05/15/2022, 7:59 AMBAN
05/15/2022, 10:13 AMjackjackk
05/15/2022, 11:50 AMLeDragunov
05/15/2022, 4:03 PMjson
curl 'https://uhqhezqfibinawwjment.supabase.co/rest/v1/Services?id=eq.1&select=*' \
-H "apikey: SUPABASE_KEY" \
-H "Authorization: Bearer SUPABASE_KEY" \
json
[
{
"id": "18379db8-a931-4ede-9352-7ad719c990bf",
"created_at": "2022-05-14T10:47:53+00:00",
"name": "Football",
"description": "Enjoy with your friends playing football",
"duration": 60,
"location": null,
"slots": 2,
"price": 25,
"vendor_id": "aa98fcd2-4d64-420e-80f9-070df422f2d4"
},
{
"id": "fbff8aec-b55c-4372-9bd3-ed7126679285",
"created_at": "2022-05-15T15:37:27+00:00",
"name": "Basketball",
"description": "We play basketball, for fun",
"duration": 60,
"location": null,
"slots": 5,
"price": 20,
"vendor_id": "aa98fcd2-4d64-420e-80f9-070df422f2d4"
}
]
ian_
05/16/2022, 3:00 AMMattyfaz
05/16/2022, 3:12 AMd33pu
05/16/2022, 3:41 AMstieludv
05/16/2022, 11:19 AMNeedle
05/16/2022, 11:47 AMvictorwhiskey
05/16/2022, 12:15 PMNeedle
05/16/2022, 2:00 PMNeedle
05/16/2022, 2:07 PMZarckk
05/16/2022, 2:17 PMPaul
05/16/2022, 2:28 PMNeedle
05/16/2022, 2:31 PMAmusedGrape
05/16/2022, 5:11 PMLosBopfos
05/16/2022, 6:24 PMElectricDragon
05/16/2022, 6:44 PMAmos
05/16/2022, 6:44 PMjsonb
column when upserting with Supabase?
For example if I have a table on Postgres with a jsonb
column containing {"a": 1, "b": 2}
and I want to upsert a record with the same id and {"b": 10, "c": 20}
as the jsonb
column value. Without Supabase this looks like
sql
insert into the_table (id, json_column)
values (1, '{"b": 10, "c": 20}'::jsonb)
on conflict (id) do update
set json_column = table_name.json_column || excluded.json_column;
With Supabase it doesn't seem you can provide do something like
typescript
await supabase
.from('the_table')
.upsert({ id: 1, json_column: {"b": 10, "c": 20} }, { onConflict: 'json_column <something here?>' })
Jesse
05/16/2022, 6:53 PM