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
>=SelectQueryError<`Could not embed because more than one relationship was found for '${DistantName}' and '${RelationName}' you need to hint the column with ${DistantName}!<columnName> ?`>
SelectQueryError<`Could not embed because more than one relationship was found for '${RelatedRelationName}' and '${CurrentTableOrView}' you need to hint the column with ${RelatedRelationName}!<columnName> ?`>
183
165
: FoundRelation
184
166
: // Same check for forward relationships, but we must gather the relationships from the found relation
185
167
FoundRelationextends{
@@ -188,13 +170,13 @@ type CheckRelationshipError<
? RequireHintingSelectQueryError<Fromextendsstring ? From : 'unknown',RelatedRelationName>
179
+
? SelectQueryError<`Could not embed because more than one relationship was found for '${From}' and '${RelatedRelationName}' you need to hint the column with ${From}!<columnName> ?`>
198
180
: FoundRelation
199
181
: FoundRelation
200
182
@@ -229,7 +211,7 @@ type ResolveReverseRelationship<
? SelectQueryError<`Could not embed because more than one relationship was found for '${RelatedRelationName}' and '${CurrentTableOrView}' you need to hint the column with ${RelatedRelationName}!<columnName> ?`>
@@ -197,9 +198,9 @@ type Schema = Database['public']
197
198
const{ data }=awaitselectQueries.joinOneToOneWithNullablesNoHint.limit(1).single()
198
199
letresult: Exclude<typeofdata,null>
199
200
letexpected: {
200
-
first_user: "Could not embed because more than one relationship was found for 'users' and 'best_friends' you need to hint the column with users!<columnName> ?"
201
-
second_user: "Could not embed because more than one relationship was found for 'users' and 'best_friends' you need to hint the column with users!<columnName> ?"
202
-
third_wheel: "Could not embed because more than one relationship was found for 'users' and 'best_friends' you need to hint the column with users!<columnName> ?"
201
+
first_user: SelectQueryError<"Could not embed because more than one relationship was found for 'users' and 'best_friends' you need to hint the column with users!<columnName> ?">
202
+
second_user: SelectQueryError<"Could not embed because more than one relationship was found for 'users' and 'best_friends' you need to hint the column with users!<columnName> ?">
203
+
third_wheel: SelectQueryError<"Could not embed because more than one relationship was found for 'users' and 'best_friends' you need to hint the column with users!<columnName> ?">
@@ -221,9 +222,9 @@ type Schema = Database['public']
221
222
const{ data }=awaitselectQueries.joinOneToManyWithNullablesNoHint.limit(1).single()
222
223
letresult: Exclude<typeofdata,null>
223
224
letexpected: {
224
-
first_friend_of: "Could not embed because more than one relationship was found for 'best_friends' and 'users' you need to hint the column with best_friends!<columnName> ?"
225
-
second_friend_of: "Could not embed because more than one relationship was found for 'best_friends' and 'users' you need to hint the column with best_friends!<columnName> ?"
226
-
third_wheel_of: "Could not embed because more than one relationship was found for 'best_friends' and 'users' you need to hint the column with best_friends!<columnName> ?"
225
+
first_friend_of: SelectQueryError<"Could not embed because more than one relationship was found for 'best_friends' and 'users' you need to hint the column with best_friends!<columnName> ?">
226
+
second_friend_of: SelectQueryError<"Could not embed because more than one relationship was found for 'best_friends' and 'users' you need to hint the column with best_friends!<columnName> ?">
227
+
third_wheel_of: SelectQueryError<"Could not embed because more than one relationship was found for 'best_friends' and 'users' you need to hint the column with best_friends!<columnName> ?">
@@ -270,7 +271,7 @@ type Schema = Database['public']
270
271
id: number
271
272
second_user: string
272
273
third_wheel: string|null
273
-
first_user: "Could not embed because more than one relationship was found for 'users' and 'best_friends' you need to hint the column with users!<columnName> ?"
274
+
first_user: SelectQueryError<"Could not embed because more than one relationship was found for 'users' and 'best_friends' you need to hint the column with users!<columnName> ?">
0 commit comments