Skip to content

Adding an Array to Arguments Adds as String #39

@iveoles

Description

@iveoles

Any assistance on adding arrays of values are arguments? I'm getting extra string values which is then causing the queries to fail.

$baseQuery = (new \GraphQL\Actions\Query($class, [
            'nearVector' => [
                'vector'    => "test",
                'certainty' => 0.7,
            ],
            'limit'      => $limit,
        ]))
            ->root()
            ->query();

Outputs the following

{
    Task(nearVector: { "vector" : "test", "certainty" : 0.7 } limit: 100)
}

Whereas it should be

{
    Task(nearVector: { vector : "test", certainty : 0.7 } limit: 100)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions