packages/sdk/src/components/base-query/constant.ts
export const QuerySortedKeys = [
'select',
'join',
'where',
'orderBy',
'groupBy',
'limit',
'offset',
'aggregation',
] as const;
export const QuerySortedKeysMap = QuerySortedKeys.reduce(
(acc, key, index) => {
acc[key] = index;
return acc;
},
{} as Record<string, number>
);