From 5c57d3b3793cac962a5beb1be8de7e65f73bad71 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Thu, 29 Mar 2018 20:31:31 +0800 Subject: [PATCH] Note in UPGRADE.md about changes in input format of the Standard Server --- UPGRADE.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index d95cef5..65218b9 100644 --- a/UPGRADE.md +++ b/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. +### 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 Most users won't be affected. It *may* affect you only if you do your own manipulations with exported AST.