How to return node object on programatically node creation I can create  node programmatically  with following snippet

 use \Drupal\node\Entity\Node;

// Create node object with attached file.
$node = Node::create([
  'type'        =&gt; 'article',
  'title'       =&gt; 'Druplicon test',

])-&gt;save();


but it only returned "1" on successful,I want to return the created node object . how can I achieve that?
It's Entity::save() that returns the integer, so:

$node = Node::create([
  'type'        =&gt; 'article',
  'title'       =&gt; 'Druplicon test',
]);

$node-&gt;save();

return $node;