// 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.search({
  index: "node_upgrade",
  size: 0,
  aggs: {
    startup_time_ttest: {
      t_test: {
        a: {
          field: "startup_time_before",
        },
        b: {
          field: "startup_time_after",
        },
        type: "paired",
      },
    },
  },
});
console.log(response);
----
