Working with the Entity API
Drupal Docs
https://www.drupal.org/docs/drupal-apis/entity-api/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
https://gorannikolovski.com/blog/drupal-create-media-programmatically\
How to Efficiently Fetch Drupal Reference Entities in Custom Modules
Jigish Chauhan, Specbee, Mar 07, 2023
https://www.specbee.com/blogs/fetch-drupal-reference-entities-in-custom-modules
How do I access a field value for an entity (e.g. node) object?
he Savvy Few, May 12, 2023
https://www.thesavvyfew.com/insights/how-do-i-access-field-value-entity-eg-node-object
This article rambles but has a slightly deeper dive into magic methods than many similar articles.