select row_to_json(t)
from (
select id, "email", "passwordHash", role from public."User"
) t

Help you finding bugs in commits
Simple Contact App: ES6, Prop Validate, Data flow and Component Communication
When creating components, remember that they can be composed into bigger components and reused (in the same project, in other projects, by other developers). Therefore, it is a good practice to make explicit in your components which props can be used, which ones are required, and which types of values they accept.