You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2025. It is now read-only.
* Main entry point for constructing the result type of a PostgREST query.
@@ -448,7 +448,7 @@ type ProcessSpreadNode<
448
448
? ResultextendsSelectQueryError<infer E>
449
449
? SelectQueryError<E>
450
450
: ExtractFirstProperty<Result>extendsunknown[]
451
-
? SpreadOnManyEnabled<ClientOptions['postgrestVersion']>extendstrue// Spread over an many-to-many relationship, turn all the result fields into correlated arrays
451
+
? SpreadOnManyEnabled<ClientOptions['PostgrestVersion']>extendstrue// Spread over an many-to-many relationship, turn all the result fields into correlated arrays
452
452
? ProcessManyToManySpreadNodeResult<Result>
453
453
: {
454
454
[KinSpread['target']['name']]: SelectQueryError<`"${RelationName}" and "${Spread['target']['name']}" do not form a many-to-one or one-to-one relationship spread not possible`>
Copy file name to clipboardExpand all lines: test/returns.test-d.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ const postgrest = new PostgrestClient<Database>(REST_URL)
53
53
.returns<{username: string}[]>()
54
54
expectType<
55
55
PostgrestBuilder<
56
-
{postgrestVersion: '12'},
56
+
{PostgrestVersion: '12'},
57
57
{
58
58
Error: 'Type mismatch: Cannot cast single object to array type. Remove Array wrapper from return type or make sure you are not using .single() up in the calling chain'
0 commit comments