dsl-builder
Version:
OpenSearch Query Builder - Extract from OpenSearch Dashboards
15 lines (14 loc) • 434 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.
*/
export const isDefault = (indexPattern) => {
// Default index patterns don't have `type` defined.
return !indexPattern.type;
};