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: live query does not return a json patch #202

Open
2 tasks done
blobinabottle opened this issue Dec 7, 2023 · 0 comments
Open
2 tasks done

Bug: live query does not return a json patch #202

blobinabottle opened this issue Dec 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@blobinabottle
Copy link

Describe the bug

I'm trying the live query with diff params set to true.
It works but the patch I'm receiving is not a JSON patch as stated in the doc (which would be useful).
I get patch like this {op: "change", path: "/value", value: "@@ -1,3 +1,3 @@↵-301↵+439↵"}]

I could write a custom patch / diff method but JSON patch is probably better (sorry If I'm missing the point)

Steps to reproduce

Very simple. Just using js sdk with something like await db.live( , cb, true);

Expected behaviour

Receive a correct patch (op: "replace" vs "change")

SurrealDB version

1.0

SurrealDB.js version

0.11

Contact Details

chemise-aneroide0h@icloud.com

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
@blobinabottle blobinabottle added the bug Something isn't working label Dec 7, 2023
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

1 participant