github graphql-java-kickstart/graphql-java-tools v14.5.0

3 hours ago

Deprecations

  • SchemaParserOptions.Builder.introspectionEnabled(...) and the introspectionEnabled property are deprecated and will be removed in 15.0.0 (#910, #858). The option hides every field of the introspection types, like graphql-java's NoIntrospectionGraphqlFieldVisibility that was deprecated in graphql-java 22. Turn introspection off with graphql-java instead:
    // for the whole JVM
    Introspection.enabledJvmWide(false)
    // per request
    ExecutionInput.newExecutionInput()
        .query(query)
        .graphQLContext(mapOf(Introspection.INTROSPECTION_DISABLED to true))
    An introspection query then fails with an "introspection disabled" error when it runs, instead of the FieldUndefined validation error it gets with the option.

Behaviour changes

  • Repeated fields (#920): a field that an object or input type declares twice, in the type and an extension, in two extensions or inside one definition, now logs a WARN from graphql.kickstart.tools.SchemaParser that names the declaration the schema keeps. Which one is kept doesn't change: objects keep the last one, input types keep their own over an extension's. ⚠️ This becomes an error in 15.0.0 (#865).

What's Changed

  • Version Release by @github-actions[bot] in #907
  • Deprecate the introspectionEnabled option by @oryan-block in #910
  • Warn about a field that an object or input type declares twice by @oryan-block in #920

Full Changelog: v14.4.0...v14.5.0

Don't miss a new graphql-java-tools release

NewReleases is sending notifications on new releases.