Skip to content

[AgensGraph] Can't bind array of strings to query parameter #59

@jasperblues

Description

@jasperblues

This will work:

const createMetros = `UNWIND ['NYC, 'Cavite Island'] AS metro MERGE (m:Metro {name: metro})`
await this.persistenceManager.execute(new QuerySpecification<void>(createMetros));

This will not:

const createMetros = `UNWIND $metros AS metro MERGE (m:Metro {name: metro})`
await this.persistenceManager.execute(
    new QuerySpecification<void>(createMetros).bind({metros: ['NYC', 'Cavite Island'));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions