Working with the Entity API
Drupal 10 Create Node Programmatically
Quilltez, Jan 10, 2023 https://quilltez.com/blog/drupal-10-create-node-programmatically
Examples of adding field values when creating a node, as opposed to setter methods.
Create media programmatically in Drupal
Goran Nikolovski, Oct 1, 2022
How to Efficiently Fetch Drupal Reference Entities in Custom Modules
Jigish Chauhan, Specbee, Mar 07, 2023
How do I access a field value for an entity (e.g. node) object?
he Savvy Few, May 12, 2023
This article rambles but has a slightly deeper dive into magic methods than many similar articles.