o console
console.log(r.Id);
</code></pre>
<h3 id="add-a-boolean-field">Add a Boolean Field<a class="headerlink" href="#add-a-boolean-field" title="Permanent link">&para;</a></h3>
<p>Use the addBoolean method to create a new boolean field.</p>
<pre><code class="language-TypeScript">import { spfi } from &quot;@pnp/sp&quot;;
import &quot;@pnp/sp/webs&quot;;
import &quot;@pnp/sp/lists&quot;;
import &quot;@pnp/sp/fields&quot;;

const sp = spfi(...);

// create a new boolean field called 'My Field' in web
const 