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: upsert not working in js sdk using tagged template #356

Open
2 tasks done
barel-mishal opened this issue Oct 10, 2024 · 2 comments
Open
2 tasks done

Bug: upsert not working in js sdk using tagged template #356

barel-mishal opened this issue Oct 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@barel-mishal
Copy link

barel-mishal commented Oct 10, 2024

Describe the bug

Hi I am using upsert with tagged template and its not work to someone is working?

Steps to reproduce

create tagged to js sdk and try this

UPSERT height:[time::format(time::now(),("%Y-%m-%d"))] CONTENT {
    height_value: ${data.value},
    type: ${data._type}
};

Expected behaviour

create new record with time formated in the record id

SurrealDB version

2.0.4 for macos on aarch64

JavaScript SDK version

[email protected]

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
@barel-mishal barel-mishal added the bug Something isn't working label Oct 10, 2024
@kearfy
Copy link
Member

kearfy commented Nov 20, 2024

Hey @barel-mishal, could you provide the error you see including a trace log, and the code on the JS side which causes this error? Thank you! 🙏

@barel-mishal
Copy link
Author

I think I have solved it. little bit old one I think it can be closed

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