@omelhus This is now deployed to production. Here is an example of how to use it:
mutation insert_order_lines(
$cid : Int!,
$ono : Int,
$seq : Int,
$pno1 : String,
$pno2 : String)
{
useCompany(no : $cid)
{
orderLine_create(
values : [
{
productNo : $pno1,
quantity : 1,
priceInCurrency : 100
},
{
productNo : $pno2,
quantity : 1,
priceInCurrency : 42
}
],
insertAtRow : {_and : [
{ orderNo : {_eq : $ono}}
{ lineNo : {_eq : $seq}}
]},
insertPosition : BEFORE)
{
affectedRows
items
{
orderNo
lineNo
sortSequenceNo
productNo
quantity
priceInCurrency
}
}
}
}
... View more