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
Upsert only allows single Record to be upserted. Insert allows multiple Records to be upserted, which is consistend wih SurrealQl. Upsert should also allow this to be consistend with SurrealQl and the insert method.
Describe the solution
If there was any comments or documentation on how the encoder/decoder works, I would try it myself. But after two hours, I still cant figure out how the upsert method is translated into a fetchable query. I would be very delighted to make some pull-requests, but at the current state I dont see the motivation to spend hours just trying to understand how it works.
Alternative methods
Maybe the type declaration is just faulty, and the method works. Maybe typescript just pushes the error, but since in the docs no descritption is made if it accepts multiple records, the docs and the type-declaration should be fixed.
Is your feature request related to a problem?
Upsert only allows single Record to be upserted. Insert allows multiple Records to be upserted, which is consistend wih SurrealQl. Upsert should also allow this to be consistend with SurrealQl and the insert method.
Describe the solution
If there was any comments or documentation on how the encoder/decoder works, I would try it myself. But after two hours, I still cant figure out how the upsert method is translated into a fetchable query. I would be very delighted to make some pull-requests, but at the current state I dont see the motivation to spend hours just trying to understand how it works.
Alternative methods
Maybe the type declaration is just faulty, and the method works. Maybe typescript just pushes the error, but since in the docs no descritption is made if it accepts multiple records, the docs and the type-declaration should be fixed.
SurrealDB version
2.2.1 for macos on aarch64
JavaScript SDK version
1.2.1
Contact Details
[email protected]
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: