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 method doesn't support object-based record ids #157

Open
2 tasks done
beddows opened this issue Feb 6, 2025 · 0 comments
Open
2 tasks done

Bug: Create method doesn't support object-based record ids #157

beddows opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@beddows
Copy link

beddows commented Feb 6, 2025

Describe the bug

In the following example:

person = db.create(RecordID('person', { name: 'Tobie', location: 'London' }), {
	"settings": {
		"active": True,
		"marketing": True,
	}
})

The resulting record will be:

person:⟨{ name: 'Tobie', location: 'London' }⟩

The record id is incorrectly wrapped in unicode brackets.

Steps to reproduce

See description

Expected behaviour

The record should be:

person:{ name: 'Tobie', location: 'London' }

SurrealDB version

surrealdb 2.1.4 for macos on x86_64

surrealdb.py version

1.0.3

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
@beddows beddows added the bug Something isn't working label Feb 6, 2025
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