Skip to content

Commit

Permalink
Update GraphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
kerim1 committed Feb 1, 2023
1 parent e600e77 commit f0f6ee6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
import javax.ws.rs.core.StreamingOutput;
import javax.ws.rs.core.UriBuilder;
import java.net.URI;
import java.time.Duration;
import java.time.Instant;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -162,7 +164,7 @@ public Response executeGraphql(String query, String acceptHeader, String acceptP

final UserPermissionCheck userPermissionCheck = new UserPermissionCheck(user, permissionFetcher);
final GraphQLSchema schema = graphqlGetter.get();
final GraphQLSchema transform = schema.transform(sb ->
final GraphQLSchema transform = schema.transformWithoutTypes(sb ->
sb.codeRegistry(schema.getCodeRegistry().transform(crb ->
crb.fieldVisibility(new PermissionBasedFieldVisibility(userPermissionCheck, dataSetRepository)))));
final GraphQL.Builder builder = GraphQL.newGraphQL(transform);
Expand Down

0 comments on commit f0f6ee6

Please sign in to comment.