.push(...groups.value);
}

console.log(`All groups: ${JSON.stringify(allGroups)}`);
</code></pre>
<h2 id="endpoint">Endpoint<a class="headerlink" href="#endpoint" title="Permanent link">&para;</a></h2>
<p>This behavior is used to change the endpoint to which requests are made, either "beta" or "v1.0". This allows you to easily switch back and forth between the endpoints as needed.</p>
<pre><code class="language-TypeScript">import { graphfi, Endpoint } from &quot;@pnp/graph&quot;;
import &quot;@pnp/graph/use