Note in UPGRADE.md about changes in input format of the Standard Server

This commit is contained in:
Vladimir Razuvaev 2018-03-29 20:31:31 +08:00
parent b141ed2d72
commit 5c57d3b379

View File

@ -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.