In plain words
An object groups related values under named keys, like a QuickBite order with a restaurant, items and a total, so one thing travels as one piece.
Where you see it
Curly braces with name: value pairs inside. A Guildhall member is an object with a name, an email and a role, and each row from your Supabase table arrives as one object.
What goes wrong
- A typo in a key name
member.Role or member.roles returns undefined instead of an error, so the page shows nothing and gives no hint why.
- Keys that don't match the database columns
Supabase columns are often written like created_at, while the code reads createdAt. One side has to match the other exactly.
- Putting a whole object on screen
Drop an object into text and you get [object Object]. In React it crashes with "Objects are not valid as a React child", so pick the field you meant, like order.total.
What to tell your agent
Quick check
Sign in to earn +10 XP for itA Guildhall profile shows the member's name but the role is blank. The code reads member.Role. What's the problem?