Skip to content

Wishlists, Discount Codes and Check-ins Without a Backend

This morning's release gave hotels, restaurants, car dealers and estate agents what they sell. This one adds what nearly every business needs around it, in Schema.org's terms where Schema.org has them.

Lists and wishlists

An ItemList is an ordered list of anything: a shopper's wishlist, your staff picks, a "Top 10" page. Entries reference products, offers, places, events, rooms; GraphQL reads a list with everything on it in one request. Schema.org has no wishlist type, so a wishlist is an ItemList tagged list-type = wishlist.

Questions and answers

Shoppers ask about a kettle, guests about a room. Questions are about the object, Answers point to their Question, and your team accepts one. Tag them public once they are moderated, and your site reads them with its public key.

Conversations whose words leave with the customer

A Conversation holds the Messages between you and a customer. A message's text is personal data, so it is encrypted with its sender's key: when a customer asks to be erased, their words go with them, and your replies stay. ObjectsGrid stores messages and calls your webhook; the notifications are your app's.

Discount codes that can't be spent twice

A DiscountCode takes a percentage or an amount off, from a date, above a minimum, on some offers or categories, for some customers, so many times. The cart shows the discount, or why the code doesn't apply, on every read. At checkout the code is checked again and its use counted in the same step as the Order is created: the last use goes to one shopper only. Discount codes.

Tickets that admit once

A CheckInAction records who came in: a member at the gym, a student at a class, a ticket at the gate. A ticket admits once, even scanned at two gates at the same moment; a membership admits every day. Attendance is a list away. Check-ins.