Node.js library - missing namespaces

hi,
I'm using the official node.js lib from npm,
but many functions, that appears on the api reference list, are not included there..
for example submitting a new job of machine learning.
the other option is to use a plain rest call, but I prefer to use the native option if exists.

in the image below, client.ml is not defined.
what am I missing ?
thanks

resolved by installing npm i @elastic/elasticsearch instead of npm i elasticsearch

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.