graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Multiple arguments are not comma separated

Open meops opened this issue 1 year ago • 0 comments

Seeing the following, not sure if arguments are meant to be passed a different way?:

use GraphQL\Actions\Query;

echo new Query('test', ['foo' => 'bar', 'baz' => 'qux']);

// Outputs:
// {
//     test(foo: "bar" baz: "qux")
// }

$query = new Query('test2');
echo $query->waldo(['foo' => 'bar', 'baz' => 'qux'])
    ->use('fred')
    ->root()
    ->query();

// Outputs:
// {
//     test2 {
//         waldo(foo: "bar" baz: "qux")  {
//             fred
//         }
//     }
// }

meops avatar Oct 12 '24 20:10 meops