dsl-builder
Version:
OpenSearch Query Builder - Extract from OpenSearch Dashboards
19 lines (18 loc) • 563 B
JavaScript
;
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDefault = void 0;
const isDefault = (indexPattern) => {
// Default index patterns don't have `type` defined.
return !indexPattern.type;
};
exports.isDefault = isDefault;