Skip to content

this.subQuery is not a function #227

Description

@mirzasetiyono

i try to a insert a simple row using createQueryBuilder

await connection.createQueryBuilder() .insert() .into(User) .values( [ { wallet_account_public_key: "stringstring", name: "stringstring", joined_date: newEpoch(), roles: [] } ] ) .execute();

this query only doesnt work in the seed class impemention Seeder inside the run function

but when i do this query, its work

await connection.createQueryBuilder() .insert() .into(Role) .values( [ { name: "normal" }, { name: "admin" }, { name: "superadmin" } ] ).execute();

idk why but its very very very weird

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions