Skip to content

Bug: query success but not record update #533

@ya0z0ng

Description

@ya0z0ng

Describe the bug

create record succcess in surreallist but fail in client with status 200 and empty result with same sql

const db = new Surreal()
await db.connect(...)
await db.use(...)
const record = await db.query(
                    `CREATE job CONTENT {
                        title: "Senior Backend Engineer",
                        description: "Responsible for building scalable APIs.",
                        salary: "150000",
                        state: "draft",
                        location: "Remote",
                        company: company:3uwxahwn0fhmkzlqwp8p,
                        industry: industry:j3dcd6n0ewybhmvg3qbb,
                        schedule: "full_time",
                        seniority_level: "Senior",
                        expired_time: NONE
                    }`,
                );

In surreallist, new record created success

Image

In JDK client, request success with ok result but no record create

Image

Steps to reproduce

just use any table with REFERENCE fields (table with no REFERENCE fields will work)

Expected behaviour

none

SurrealDB version

3.0.0-beta.2 for for linux on aarch64

JavaScript SDK version

2.0.0-alpha.16

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct (repository /surrealdb.js)

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions