Hi folks,
# help
c
Hi folks,
n
Hello @Crane! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
c
I am trying to insert into db using the js client
something like this
Copy code
const { data, error, status } = await supabase.from("orders").insert([
      {
        order_name: orderCustomerNote,
        store_id: selectedStoreCode,
        sender_id: customerId,
        to_address: 1,
        subtotal_price: 20,
        total_price: 20 + 15,
        shipping_cost: 15,
        status_id: 3,
        notes: "notes",
        payment_method: 1,
      },
    ])
this order has an increment id
but I am currently not sure how to add this using the sdk
how to do this using the sdk?
g
If you have an incrementing id column, you do not send that column in the insert.
n
Crane (2022-03-20)