Insert or Update Unique Records in a Collection

Learn how to insert or update unique records directly into a collection using Corvid (a.k.a. Wix Code). 

​This example shows you how to insert unique shape records into a collection called #Shapes. Once a shape exists within the #Shapes collection, you will be able to update its colour, but not add another shape of the same type. Try the example below.

Try it!
Select a shape and colour for insert.
Please wait ...
Disclaimer: To the best of our knowledge, this code works for its stipulated purpose. If you find an error in our code, or know of a better way to achieve the same result - please contact us! All our code snippets come with full support to help you implement them on your own website - simply contact us for help.
  • Facebook Social Icon
© VeloCodeBank