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

[source, js]
----
const response0 = await client.index({
  index: 'users',
  refresh: 'wait_for',
  body: {
    user_id: 12345
  }
})
console.log(response0)

const response1 = await client.index({
  index: 'users',
  refresh: 'wait_for',
  body: {
    user_id: 12346
  }
})
console.log(response1)
----

