Skip to content

Commit

Permalink
Merge pull request #43313 from RoMiRoSSaN/smallrye-graphql-directives
Browse files Browse the repository at this point in the history
Smallrye GraphQL: add missing federation annotations to index
  • Loading branch information
geoand authored Sep 16, 2024
2 parents e47b8ed + 1215fde commit afef05e
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,27 @@
import io.smallrye.graphql.api.Entry;
import io.smallrye.graphql.api.ErrorExtensionProvider;
import io.smallrye.graphql.api.OneOf;
import io.smallrye.graphql.api.federation.Authenticated;
import io.smallrye.graphql.api.federation.ComposeDirective;
import io.smallrye.graphql.api.federation.Extends;
import io.smallrye.graphql.api.federation.External;
import io.smallrye.graphql.api.federation.FieldSet;
import io.smallrye.graphql.api.federation.Inaccessible;
import io.smallrye.graphql.api.federation.InterfaceObject;
import io.smallrye.graphql.api.federation.Key;
import io.smallrye.graphql.api.federation.Provides;
import io.smallrye.graphql.api.federation.Requires;
import io.smallrye.graphql.api.federation.Shareable;
import io.smallrye.graphql.api.federation.Tag;
import io.smallrye.graphql.api.federation.link.Import;
import io.smallrye.graphql.api.federation.link.Link;
import io.smallrye.graphql.api.federation.link.Purpose;
import io.smallrye.graphql.api.federation.policy.Policy;
import io.smallrye.graphql.api.federation.policy.PolicyGroup;
import io.smallrye.graphql.api.federation.policy.PolicyItem;
import io.smallrye.graphql.api.federation.requiresscopes.RequiresScopes;
import io.smallrye.graphql.api.federation.requiresscopes.ScopeGroup;
import io.smallrye.graphql.api.federation.requiresscopes.ScopeItem;
import io.smallrye.graphql.cdi.config.MicroProfileConfig;
import io.smallrye.graphql.cdi.producer.GraphQLProducer;
import io.smallrye.graphql.cdi.tracing.TracingService;
Expand Down Expand Up @@ -298,6 +309,17 @@ void buildFinalIndex(
indexer.indexClass(io.smallrye.graphql.api.federation.Override.class);
indexer.indexClass(Tag.class);
indexer.indexClass(OneOf.class);
indexer.indexClass(Authenticated.class);
indexer.indexClass(FieldSet.class);
indexer.indexClass(Link.class);
indexer.indexClass(Import.class);
indexer.indexClass(Purpose.class);
indexer.indexClass(Policy.class);
indexer.indexClass(PolicyGroup.class);
indexer.indexClass(PolicyItem.class);
indexer.indexClass(RequiresScopes.class);
indexer.indexClass(ScopeGroup.class);
indexer.indexClass(ScopeItem.class);
} catch (IOException ex) {
LOG.warn("Failure while creating index", ex);
}
Expand Down

0 comments on commit afef05e

Please sign in to comment.