-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix schema transformation and Field Visibility for complex deletion cases #4209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0464f19
bfd8789
49dca7e
44aeed6
fe82d4f
7c55747
7553d76
6b77ff8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # AI Agent Context for graphql-java | ||
|
|
||
| This file provides context for AI assistants working with this codebase. | ||
|
|
||
| ## Test Execution | ||
|
|
||
| When running tests, exclude the Java version-specific test tasks to avoid failures: | ||
|
|
||
| ```bash | ||
| ./gradlew test -x testWithJava17 -x testWithJava11 -x testng | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,7 +52,7 @@ public class GraphQLSchema { | |
| private final GraphQLObjectType mutationType; | ||
| private final GraphQLObjectType subscriptionType; | ||
| private final GraphQLObjectType introspectionSchemaType; | ||
| private final ImmutableSet<GraphQLType> additionalTypes; | ||
| private final ImmutableSet<GraphQLNamedType> additionalTypes; | ||
| private final GraphQLFieldDefinition introspectionSchemaField; | ||
| private final GraphQLFieldDefinition introspectionTypeField; | ||
| // we don't allow modification of "__typename" - it's a scalar | ||
|
|
@@ -275,10 +275,10 @@ public GraphQLObjectType getIntrospectionSchemaType() { | |
| * | ||
| * @return an immutable set of types that were explicitly added as additional types | ||
| * | ||
| * @see Builder#additionalType(GraphQLType) | ||
| * @see Builder#additionalType(GraphQLNamedType) | ||
| * @see Builder#additionalTypes(Set) | ||
| */ | ||
| public Set<GraphQLType> getAdditionalTypes() { | ||
| public Set<GraphQLNamedType> getAdditionalTypes() { | ||
| return additionalTypes; | ||
| } | ||
|
|
||
|
|
@@ -745,7 +745,7 @@ public static class Builder { | |
| private final Set<GraphQLDirective> additionalDirectives = new LinkedHashSet<>( | ||
| asList(Directives.IncludeDirective, Directives.SkipDirective) | ||
| ); | ||
| private final Set<GraphQLType> additionalTypes = new LinkedHashSet<>(); | ||
| private final Set<GraphQLNamedType> additionalTypes = new LinkedHashSet<>(); | ||
| private final List<GraphQLDirective> schemaDirectives = new ArrayList<>(); | ||
| private final List<GraphQLAppliedDirective> schemaAppliedDirectives = new ArrayList<>(); | ||
|
|
||
|
|
@@ -808,7 +808,7 @@ public Builder codeRegistry(GraphQLCodeRegistry codeRegistry) { | |
| * | ||
| * @see GraphQLSchema#getAdditionalTypes() | ||
| */ | ||
| public Builder additionalTypes(Set<GraphQLType> additionalTypes) { | ||
| public Builder additionalTypes(Set<? extends GraphQLNamedType> additionalTypes) { | ||
| this.additionalTypes.addAll(additionalTypes); | ||
| return this; | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also a breaking change |
||
|
|
@@ -831,7 +831,7 @@ public Builder additionalTypes(Set<GraphQLType> additionalTypes) { | |
| * @see GraphQLSchema#getAdditionalTypes() | ||
| * @see #additionalTypes(Set) | ||
| */ | ||
| public Builder additionalType(GraphQLType additionalType) { | ||
| public Builder additionalType(GraphQLNamedType additionalType) { | ||
| this.additionalTypes.add(additionalType); | ||
| return this; | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and again - thats ok - just pointing it out
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well .. they never contained not named types so far. Technically breaking, but I think nobody ever used it to add |
||
|
|
@@ -844,7 +844,7 @@ public Builder additionalType(GraphQLType additionalType) { | |
| * | ||
| * @return this builder | ||
| * | ||
| * @see #additionalType(GraphQLType) | ||
| * @see #additionalType(GraphQLNamedType) | ||
| * @see #additionalTypes(Set) | ||
| */ | ||
| public Builder clearAdditionalTypes() { | ||
|
|
||
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change. Just in case you didnt realise.