Skip to content

Opensearch dashboards.savedobjectsfindoptions.fields

Home > opensearch-dashboards > SavedObjectsFindOptions > fields

SavedObjectsFindOptions.fields property

An array of fields to include in the results

Signature:

fields?: string[];

Example

SavedObjects.find({type: 'dashboard', fields: ['attributes.name', 'attributes.location']})