kibana/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternfield.tojson.md
Liza Katz a6af9d5050
[Es query] Move to package (#103530)
May the forces of bootstrapping helps us 🙏🏻 😉
2021-07-21 17:10:55 +02:00

1.5 KiB

Home > kibana-plugin-plugins-data-public > IndexPatternField > toJSON

IndexPatternField.toJSON() method

Signature:

toJSON(): {
        count: number;
        script: string | undefined;
        lang: "painless" | "expression" | "mustache" | "java" | undefined;
        conflictDescriptions: Record<string, string[]> | undefined;
        name: string;
        type: string;
        esTypes: string[] | undefined;
        scripted: boolean;
        searchable: boolean;
        aggregatable: boolean;
        readFromDocValues: boolean;
        subType: import("@kbn/es-query").IFieldSubType | undefined;
        customLabel: string | undefined;
    };

Returns:

{ count: number; script: string | undefined; lang: "painless" | "expression" | "mustache" | "java" | undefined; conflictDescriptions: Record<string, string[]> | undefined; name: string; type: string; esTypes: string[] | undefined; scripted: boolean; searchable: boolean; aggregatable: boolean; readFromDocValues: boolean; subType: import("@kbn/es-query").IFieldSubType | undefined; customLabel: string | undefined; }