Here we are listing all the GraphQL breaking changes that will go in 21.03.0.
-
String field won’t accept any non-string value.
This change was done to make our implementation GraphQL spec compliant. We were accepting
non-stringvalues forstringfields in variables, which is not in accordance with the GraphQL spec.Change in gqlParser
[Breaking] fix(GraphQL): fix validation when we give non-string value in variable and expected type is string. by JatinDevDG · Pull Request #13 · dgraph-io/gqlparser · GitHubPR in dgraph that upgrade the gqlparser version
[Breaking]fix(GraphQL):Added support for parameterized cascade with variables. by JatinDevDG · Pull Request #7477 · dgraph-io/dgraph · GitHub -
Int field won’t accept any non-integer (int32) value.
This change was also done to make our implementation GraphQL spec compliant. We were accepting
Stringvalues forintegerfields in variables, which is not in accordance with the GraphQL spec.Change in gqlParser
[Breaking] fix(GRAPHQL): Remove support of String --> int32 coercion in variables. by JatinDevDG · Pull Request #15 · dgraph-io/gqlparser · GitHubPR in dgraph that upgrade the gqlparser version
[Breaking] fix(GRAPHQL): fix input coercing for integers and make them GraphQL spec complaint. by JatinDevDG · Pull Request #7584 · dgraph-io/dgraph · GitHub