Skip to content

Commit

Permalink
Remove @policy, @requiresScopes, @authenticated when producing …
Browse files Browse the repository at this point in the history
…public schema (#78)
  • Loading branch information
kamilkisiela authored Jan 17, 2025
1 parent 57d0d03 commit 4e25e6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/a-b-c.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@theguild/federation-composition": patch
---

`transformSupergraphToPublicSchema` removes now `@policy`, `@requiresScopes` and `@authenticated`
3 changes: 3 additions & 0 deletions src/graphql/transform-supergraph-to-public-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export const federationDirectives = new Set([
'join__enumValue',
'join__field',
'inaccessible',
'authenticated',
'policy',
'requiresScopes',
]);
const specifiedDirectives = new Set(specifiedDirectivesArray.map(d => d.name));

Expand Down

0 comments on commit 4e25e6d

Please sign in to comment.