io.display.object
A whole record, keys and values.
io.display.object shows the keys and values of a record in a page or in a step of an action. Nested objects and lists show under their key. Pass a record as your query returns it, with nothing to map first. It only displays and returns nothing.
The simplest one
The whole action file, and roughly what your team sees when it runs.
Show account
What you can set
The settings you will reach for most, each with the line of code that turns it on.
Straight from the database. Pass the record as your query returns it. Every key shows with its value.
Relations included. Nested objects show under their key, such as the plan of an account.
Lists too. Pass a list and its items show under their position: 0, 1, 2.
Values in their colors. Strings, numbers and booleans each get their own color. A date arrives as its ISO string.
Folds deep data. Nested data opens two levels deep. A click folds it or opens it again.
Copy any value. Every value can be copied, such as an ID to paste into a support ticket.
More in the docs
This page shows the idea. The docs have every prop, the checks on the server and more examples.
Next components
Three more calls on io. Each one shows a control and hands your code a typed value.
Write your first tool today.
An async function, a few await calls, and the form is in the browser.