Skip to content

Add framework specific DgsNoOpPreparsedDocumentProvider - #599

Merged
paulbakker merged 3 commits into
Netflix:masterfrom
jord1e-forks:noop-documentprovider
Sep 8, 2021
Merged

paulbakker merged 3 commits into
Netflix:masterfrom
jord1e-forks:noop-documentprovider

Conversation

@jord1e

@jord1e jord1e commented Sep 2, 2021

Copy link
Copy Markdown
Contributor

Pull request checklist

  • Please read our contributor guide
  • Consider creating a discussion on the discussion forum
    first
  • Make sure the PR doesn't introduce backward compatibility issues
  • Make sure to have sufficient test cases

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Changes in this PR

Replaces the graphql-java NoOpPreparsedDocumentProvider with a Kotlin object DgsNoOpPreparsedDocumentProvider because the graphql-java one is annotated with @Internal:

/**
 * This represents code that the graphql-java project considers internal code that MAY not be stable within
 * major releases.
 *
 * In general unnecessary changes will be avoided but you should not depend on internal classes being stable
 */

Test adopted from https://github.com/graphql-java/graphql-java/blob/8530366f24ba316075a63402473cb2a38ca36ab3/src/test/groovy/graphql/execution/preparsed/NoOpPreparsedDocumentProviderTest.groovy

Alternatives considered

N/A

Replaces the graphql-java NoOpPreparsedDocumentProvider with DgsNoOpPreparsedDocumentProvider because it is annotated with @internal
@paulbakker
paulbakker merged commit 3d1d61f into Netflix:master Sep 8, 2021
@paulbakker

Copy link
Copy Markdown
Collaborator

Thanks @jord1e !

@jord1e
jord1e deleted the noop-documentprovider branch September 8, 2021 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants