// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.mjs` to generate the docs examples

[source, js]
----
const response = await client.index({
  index: "products",
  id: 0,
  refresh: "true",
  document: {
    name: "LED TV",
    resellers: [
      {
        reseller: "companyA",
        price: 350,
      },
      {
        reseller: "companyB",
        price: 500,
      },
    ],
  },
});
console.log(response);
----
