{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/7336b421f72d4aa6bc19d5ae53b349d8\" frameborder=\"0\" width=\"1232\" height=\"924\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":924,"width":1232,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":924,"thumbnail_width":1232,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/7336b421f72d4aa6bc19d5ae53b349d8-00001.gif","duration":272.7,"title":"Creating a Coupon Collection for Restaurants 🍴","description":"Hey there! In this Loom, I'm going to show you how to create a new app that has two collections: restaurants and coupons. The coupon collection will have a relationship to restaurants so that one restaurant can have multiple coupons. We'll also have a score that will be a number. I'll show you how to add two restaurants and then demonstrate two options: how to add coupons and how to increase the score. We'll have a list of restaurants with the title \"Restaurants\" and a list of coupons with the title \"Current Restaurant Coupons.\" When we preview, we'll see that we have two restaurants with no score. We'll add a coupon for 20% and save it, and the score will increase to one. Then we'll add another coupon and save it, and the score will increase to two. It's just two simple actions: first, we create a coupon, and then we update it."}