// This file is autogenerated, DO NOT EDIT // Use `node scripts/generate-docs-examples.js` to generate the docs examples [source, js] ---- const response = await client.index({ index: "example", document: { location: { type: "Polygon", coordinates: [ [ [100, 0], [101, 0], [101, 1], [100, 1], [100, 0], ], [ [100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2], ], ], }, }, }); console.log(response); ----