// 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.indices.create({ index: "my-index-000002", mappings: { properties: { metrics: { subobjects: false, properties: { time: { type: "object", properties: { min: { type: "long", }, max: { type: "long", }, }, }, }, }, }, }, }); console.log(response); const response1 = await client.indices.getMapping({ index: "my-index-000002", }); console.log(response1); ----