graphql icon indicating copy to clipboard operation
graphql copied to clipboard

A GraphQL query builder class

Results 9 graphql issues
Sort by recently updated
recently updated
newest added

how can I achieve this: ``` { client(id: "141") { email user { id name } company_name } } ``` Everything I have tried keeps putting user at the end....

The reason I would use a query builder instead of a raw GraphQL query is that I want to be able to allow 3rd-party to alter the query, for example,...

I see that the library automatically generates the name of the query in some cases. For example, here: ```php $variable = new GraphQL\Entities\Variable('name', 'String'); $hero = new \GraphQL\Actions\Query('hero', ['name' =>...

I need to insert a field with arguments to a Fragment, to have something like this: ```graphql fragment hero on Hero { name friends } ``` So, here is the...

I implemented a fix that allows using fields with arguments, but without includes (sub-fields), to fix the issue #31. An example of queries without sub-fields can be found in the...

When I copy-paste the Fragment example from the readme: ```php $fragment = new GraphQL\Entities\Fragment('properties', 'Hero'); $fragment->use('id', 'age'); $hero = new \GraphQL\Actions\Query('hero'); echo $hero->use('name', $fragment)->query(); echo $fragment->query(); ``` it throws an...

I'm working with Commercetools API, here is the reference https://docs.commercetools.com/api/graphql And it requires to add fields with arguments, here is an example: ```gql query MyQuery { product(sku: "SKU1") { id...

Seeing the following, not sure if arguments are meant to be passed a different way?: ```php use GraphQL\Actions\Query; echo new Query('test', ['foo' => 'bar', 'baz' => 'qux']); // Outputs: //...

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' =>...