Bug: Create doesn't work with SurrealDB 2.0.0 Beta 2 or later include 2.0.0 release #126
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
In
public async Task<T> Create<T>(string table, T? data, CancellationToken cancellationToken)
create no longer returns an array from SurrealDB, cause CBOR parse to fail.
Should be changed from
return dbResponse.DeserializeEnumerable<T>().First();
toreturn dbResponse.GetValue<T>()!;
"Create on rpc which returned an array now returns an object. Similar change made to Rust SDK"
Steps to reproduce
Use public
async Task<T> Create<T>(string table, T? data, CancellationToken cancellationToken)
inSurrealDbWsEngine
to create a record.Expected behaviour
It should return the new record. Currently cbor throws an exception, can find array tag.
SurrealDB version
2.0.0-beta.2
Package version(s)
2.0.0-beta.2
Contact Details
[email protected]
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: