@neo4j/graphql
Version:
A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations
19 lines • 864 B
TypeScript
import type { FilterOperator } from "../../ast/filters/Filter";
export type WhereRegexGroups = {
fieldName: string;
isAggregate: boolean;
operator: FilterOperator | undefined;
prefix?: string;
isConnection: boolean;
};
export declare function parseWhereField(field: string): WhereRegexGroups;
export declare const aggregationFieldRegEx: RegExp;
export type AggregationOperator = "AVERAGE" | "SHORTEST" | "LONGEST" | "MIN" | "MAX" | "SUM";
export type AggregationLogicalOperator = "EQUAL" | "EQ" | "GT" | "GTE" | "LT" | "LTE" | "IN";
export type AggregationFieldRegexGroups = {
fieldName: string;
aggregationOperator?: AggregationOperator;
logicalOperator?: AggregationLogicalOperator;
};
export declare function parseAggregationWhereFields(field: string): AggregationFieldRegexGroups;
//# sourceMappingURL=parse-where-field.d.ts.map