Comments (2)
I am getting the following response
from php-graphql-client.
Pasting also my code to make it easier to help :D
$mutation = (new Mutation('signIn'))
->setOperationName('SignInMutation')
->setArguments(
[
'input' => new RawObject('{email: "[email protected]", password: "'.$hashedPassword.'"}'),
])
->setSelectionSet([
(new Query('currentUser'))
->setSelectionSet(
[
'slug',
'id',
(new Query('jwtToken'))->setSelectionSet([
'token',
'expiredAt'
])->setArguments(['aud' => 'farid'])
]
),
(new Query('errors'))
->setSelectionSet(
[
'message',
]
),
],
);
$results = $client->runQuery($mutation);
dd($results);
from php-graphql-client.
Related Issues (20)
- Add support for AWS IAM authorization HOT 1
- Namespace conflict with webonyx/graphql-php HOT 4
- Client.php, line 122: Call to undefined function GuzzleHttp\\Psr7\\stream_for() HOT 2
- Argument 1 passed to GuzzleHttp\Client::send() must be an instance of GuzzleHttp\Message\RequestInterface HOT 2
- Empty string mutation variables handled as null HOT 3
- Array arguments string conversion bug
- How to suppress 'Member has protected visibility'
- Support for response with both errors and data HOT 1
- JSON decode failures HOT 1
- Printing raw query for debugging HOT 7
- Update Mutation HOT 1
- Trying to produce mutation with nesting HOT 1
- Support request: How to build query for enum __type in schema HOT 1
- PHPDoc Type Error HOT 1
- How do I remove "query" from the beginning of the query? HOT 1
- Enum values not getting passed
- PHP 8.1+ support? HOT 2
- Non-static method GraphQL\Util\StringLiteralFormatter::isVariable() cannot be called statically
- Update supporting psr/http-message:^2.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-graphql-client.