@ronenin One thing I noticed in your code… the get() needs the “full path” for the data collection. You should use:
let NewOrder = wixData.get('Stores/Orders', newOrderId);
See the article Corvid: Testing and Debugging Your Code for information on how to debug your code (including backend). You can also use the browser’s Javascript debugging console to view console.log() messages.