Replies: 2 comments 5 replies
-
Right now, its not supported but i can work on this. We already have option to update with operators which accepts hardcoded value - https://jsstore.net/tutorial/update/with-operators/ So it should be easy to implement. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@10787 have added a The feature is added in version - 4.3.0. Let me know if you need any help. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to set a value in an update operation, by referencing other columns, similar to the following sql example:
update orderLine
set lineAmount = price * qty
What would be the syntax in jsstore?
Not this for sure...:
var noOfRowsUpdated = await jsstoreCon.update({
in: 'orderLine',
set: {
lineAmount: 'quantityLine' * 'price'
}
});
Thanks
Beta Was this translation helpful? Give feedback.
All reactions