Need Node js code for opensearch idex creation and queries

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
We are working on large enterprise project, We need to node js code for creating index and querying in open search and how to configure it Thank you
Describe the issue:


Relevant Logs or Screenshots:

Here is the document: JavaScript client - OpenSearch documentation