Comments (2)
I am not quite sure to understand how you are using this middleware and were your issues arise. This lib is meant to be used with webonyx/graphql-php
. Is it not what you are doing ? could you show with a reprex what you're doing and what does not work as intended ?
from graphql-upload.
I was able to get something working in our case. But, the addition of the operation
key into the request body was troublesome:
$result = json_decode($bodyParams['operations'], true);
if (isset($result['operationName'])) {
$result['operation'] = $result['operationName'];
unset($result['operationName']);
}
Is this a GraphQL standard? Without this lib, the request body does not have this, at least with the clients I've tested. Also, I was unable to request the request stream on the request object to "re-parse" the body as I saw fit in subsequent middleware. Essentially, the initial request body wasn't available via the request object in the pipeline.
from graphql-upload.
Related Issues (11)
- Zend only? HOT 2
- Make v5 allow PHP 8 HOT 3
- Is there a particular reason to use caret (^) for webonyx version? HOT 1
- Warning on invalid mapping
- Webonyx version 15.0
- Laravel HOT 1
- Middleware with slim framework HOT 2
- How to test? HOT 5
- The request must define a `map` HOT 1
- Can the dependency webonyx/graphql-php be updated to 14.0.0+? HOT 4
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 graphql-upload.