Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Create doesn't work with SurrealDB 2.0.0 Beta 2 or later include 2.0.0 release #126

Open
2 tasks done
EricSites opened this issue Sep 18, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@EricSites
Copy link

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(); to return 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) in SurrealDbWsEngine 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?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@EricSites EricSites added the bug Something isn't working label Sep 18, 2024
@Odonno
Copy link
Contributor

Odonno commented Nov 5, 2024

Thank you for noticing this @EricSites

The .NET SDK now supports SurrealDB v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants