This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
You call client.data.Todo.select(['id']).execute() and then read todo.title in the UI. What is the result?
client.data.Todo.select(['id']).execute()
todo.title
The code compiles, and title is read as an empty string.
The code fails to compile because title wasn't selected.
title
The client fetches the missing field automatically.
An issue list returns exactly 100 rows even though the table contains 250. No error appears. What should you do?
Add an orderBy clause to the query.
orderBy
Use first(n) with executePaginated() and pass endCursor to after().
first(n)
executePaginated()
endCursor
after()
Read totalCount and loop until the count is reached.
totalCount
A dashboard needs the number of issues per status. Which approach follows the client's constraints?
Combine groupBy, aggregate, and select in one query to get rows and counts together.
groupBy
aggregate
select
Use aggregate with count on the text field status.
count
status
Group by status and aggregate a non-nullable numeric field with count, as a separate query.
You create an issue, and then render created.status in the UI. The form didn't send status, and the entity default sets it. The value is missing. What should you do?
created.status
Read the record back with select([...]).where({ id: { eq: created.id } }).findFirst().
select([...]).where({ id: { eq: created.id } }).findFirst()
Call create again, because the first call failed silently.
create
Call findById(created.id) and read status from the result.
findById(created.id)
You want to remove one uploaded file from a Storage folder by deleting the folder class and applying the change. What is the consequence?
Only the one file is removed.
Every object in the folder is deleted permanently, and apply refuses unless forced.
The folder is hidden but its files are kept.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?