Sorry, no results found for "".
Comma-separated list of relationship paths. A relationship path is a dot-separated list of relationship names. Allowed relationship paths: role.
role
"role"
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const user = await client.users.findMe();7 8 // Check the 'Returned output' tab for the result ☝️9 console.log(user);10}11 12run();
1{2 id: "312",3 email: "mark.smith@example.com",4 is_2fa_active: true,5 full_name: "Mark Smith",6 is_active: true,7 role: { type: "role", id: "34" },8}