payload
Version:
Node, React, Headless CMS and Application Framework built on Next.js
25 lines (24 loc) • 610 B
JavaScript
export const validOperators = [
'equals',
'contains',
'not_equals',
'in',
'all',
'not_in',
'exists',
'greater_than',
'greater_than_equal',
'less_than',
'less_than_equal',
'like',
'not_like',
'within',
'intersects',
'near'
];
export const validOperatorSet = new Set(validOperators);
/**
* Matches a dot-separated path where each segment is a word character (a-zA-Z0-9_).
* Used to validate field paths before they are processed by query builders.
*/ export const SAFE_FIELD_PATH_REGEX = /^\w+(?:\.\w+)*$/;
//# sourceMappingURL=constants.js.map