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

Change function does not exist #134

Open
2 tasks done
MaxThom opened this issue Apr 25, 2024 · 3 comments
Open
2 tasks done

Change function does not exist #134

MaxThom opened this issue Apr 25, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@MaxThom
Copy link

MaxThom commented Apr 25, 2024

Describe the bug

When using the Change method, I get this error message from surrealdb:
sending request failed for method 'change': Method not found
I am using surreal version 1.3.1

I see the latest version of the code changed this method to Merge(), but it doesnt seem to be in the latest release.
So I assume, my surrealdb version is to new for the last release?

Moreover, will the sdk transform any nil value to NONE so they get removed in surreal?

Thank you!

Steps to reproduce

Start the surrealdb v1.3.1
Call the Change() method from the sdk

Expected behaviour

To update my document

SurrealDB version

1.3.1 amd64

Contact Details

No response

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
@MaxThom MaxThom added the bug Something isn't working label Apr 25, 2024
@ElecTwix
Copy link
Contributor

modify method has been changed to merge on upstream use lastest main commit.
check out for more context: #98

@MaxThom
Copy link
Author

MaxThom commented Apr 25, 2024

Thanks!

@MaxThom MaxThom closed this as completed Apr 25, 2024
@MaxThom
Copy link
Author

MaxThom commented Aug 9, 2024

I have notice the last release is more than a year old ? should there be a new release?

Moreover, I have now updated to follow main, and I can't access marshal and unmarshal function. I have to import the package "github.com/surrealdb/surrealdb.go/pkg/marshal"

Also, the Connect function requires a conn.Connection which is not specified in any of the doc. What should we provice?

I am running this version using got get ...@main
github.com/surrealdb/surrealdb.go v0.2.2-0.20240612173039-8f4a6983912f
I have updated my surreal to be 1.5.4.

Thanks

@MaxThom MaxThom reopened this Aug 9, 2024
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