GraphQL Breaking Changes for 21.03.0

Here we are listing all the GraphQL breaking changes that will go in 21.03.0.

  1. String field won’t accept any non-string value.

    This change was done to make our implementation GraphQL spec compliant. We were accepting non-string values for string fields 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 · GitHub

    PR 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

  2. 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 String values for integer fields 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 · GitHub

    PR 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

cc: @hardik @vvbalaji @gja @arpan @abhimanyusinghgaur

2 Likes