We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad49a57 commit 931e1e6Copy full SHA for 931e1e6
packages/core/postgrest-js/src/PostgrestQueryBuilder.ts
@@ -66,13 +66,10 @@ export default class PostgrestQueryBuilder<
66
>,
67
>(
68
columns?: Query,
69
- {
70
- head = false,
71
- count,
72
- }: {
+ options?: {
73
head?: boolean
74
count?: 'exact' | 'planned' | 'estimated'
75
- } = {}
+ }
76
): PostgrestFilterBuilder<
77
ClientOptions,
78
Schema,
@@ -82,6 +79,8 @@ export default class PostgrestQueryBuilder<
82
79
Relationships,
83
80
'GET'
84
81
> {
+ const { head = false, count } = options ?? {}
+
85
const method = head ? 'HEAD' : 'GET'
86
// Remove whitespaces except when quoted
87
let quoted = false
0 commit comments