teableio/teable

View on GitHub
packages/sdk/src/components/base-query/constant.ts

Summary

Maintainability
A
0 mins
Test Coverage
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>
);