Graph and get all the groups
    const userInfo = await graph.users.top(1)();
    console.log(JSON.stringify(userInfo, null, 4));
}();
</code></pre>
<h3 id="node-project-using-typescript-producing-commonjs-modules">Node project using TypeScript producing commonjs modules<a class="headerlink" href="#node-project-using-typescript-producing-commonjs-modules" title="Permanent link">&para;</a></h3>
<p>For TypeScript projects which output commonjs but need to import esm modules you will need to take a few additio