php-graphql-client
php-graphql-client copied to clipboard
A PHP library that simplifies the process of interacting with GraphQL API's by providing simple client and query generator classes.
PHP FIG PSR-7 describes getContents as "Returns the *remaining* contents in a string", while the interface description mentions "[...] including serialization of the entire stream to a string.". For some...
Hello, I didnt see any example or test for a update mutation, how can be implemented this mutation: ` mutation MyMutation { update_users(where: {id: {_eq: 1}}, _set: {name: "My name"})...
fixes #70
Hi! Given a populated Query or QueryBuilder object, is it possible to print the raw query that generated the request? E.G.: $builder = (new QueryBuilder('pokemon')) ->setArgument('name', 'Pikachu') ->selectField('id') ->selectField('name') ->selectField(...
Hey, We've been experiencing the following issue: `array_key_exists(): Argument #2 ($array) must be of type array, null given` It seems that for whatever reason, the server on the other end...
Hello, I am trying to build a query for the following mutation, already spent hours but something is wrong. This is my code Really appreciate it if someone can help.
Hi guys I am going to use this package in my laravel 8 project like below... $builder = (new QueryBuilder('tags')) ->setArgument('first', 10) ->setArgument('page', 1) ->selectField('id') ->selectField('name'); but my phpStorm is...
According to spec (http://spec.graphql.org/October2021/#sec-Errors.Error-result-format), GraphQL response can contain both errors and data at the same time. With current implementation this package throws the `QueryError` exception which only contains the first...
We noticed an "Array to string conversion" bug with some of our queries. Not sure if we made the right fix, but we ended up overriding a few classes in...