Skip to content

Instantly share code, notes, and snippets.

@touhidrahman
Last active July 29, 2021 23:55
Show Gist options
  • Select an option

  • Save touhidrahman/1f85003e0bccbb064d92df57d60fe971 to your computer and use it in GitHub Desktop.

Select an option

Save touhidrahman/1f85003e0bccbb064d92df57d60fe971 to your computer and use it in GitHub Desktop.
supabase-query-helper.type.ts
export type FilterOperator =
| 'eq' | 'neq'
| 'gt' | 'gte'
| 'lt' | 'lte'
| 'like' | 'ilike'
| 'is' | 'in'
| 'cs' | 'cd'
| 'sl' | 'sr'
| 'nxl' | 'nxr'
| 'adj' | 'ov'
| 'fts' | 'plfts'
| 'phfts' | 'wfts'
export type FindFilter = [
column: string,
op: FilterOperator,
value: string | number | boolean | null
]
export type FindOrder = [column: string, ascending?: boolean]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment