mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 22:36:02 +03:00
Note in UPGRADE.md about changes in input format of the Standard Server
This commit is contained in:
parent
b141ed2d72
commit
5c57d3b379
19
UPGRADE.md
19
UPGRADE.md
@ -38,6 +38,25 @@ Exception inside `parseLiteral()`, `parseValue()` and `serialize()`.
|
|||||||
|
|
||||||
Returning null from any of these methods will now be treated as valid result.
|
Returning null from any of these methods will now be treated as valid result.
|
||||||
|
|
||||||
|
### Breaking: Standard server expects `operationName` vs `operation` for multi-op queries
|
||||||
|
Before the change:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"queryId": "persisted-query-id",
|
||||||
|
"operation": "QueryFromPersistedDocument",
|
||||||
|
"variables": {}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
After the change:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"queryId": "persisted-query-id",
|
||||||
|
"operationName": "QueryFromPersistedDocument",
|
||||||
|
"variables": {}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
This naming is aligned with graphql-express version.
|
||||||
|
|
||||||
### Possibly Breaking: AST to array serialization excludes nulls
|
### Possibly Breaking: AST to array serialization excludes nulls
|
||||||
Most users won't be affected. It *may* affect you only if you do your own manipulations
|
Most users won't be affected. It *may* affect you only if you do your own manipulations
|
||||||
with exported AST.
|
with exported AST.
|
||||||
|
Loading…
Reference in New Issue
Block a user