Skip to content

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

@beddows

Description

@beddows

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions