Skip to content

Commit

Permalink
🚧
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin committed Jul 10, 2024
1 parent 0e18c8e commit 86ae099
Show file tree
Hide file tree
Showing 10 changed files with 848 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/apollo-managed-federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"dependencies": {
"@graphql-yoga/apollo-managed-federation": "workspace:^",
"@graphql-yoga/plugin-apollo-usage-report": "workspace:^",
"graphql-yoga": "workspace:^",
"tsx": "4.11.0"
},
Expand Down
4 changes: 3 additions & 1 deletion examples/apollo-managed-federation/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { createServer } from 'node:http';
import { createYoga } from 'graphql-yoga';
import { useManagedFederation } from '@graphql-yoga/apollo-managed-federation';
import { useApolloUsageReport } from '@graphql-yoga/plugin-apollo-usage-report';

const yoga = createYoga({
plugins: [useManagedFederation()],
plugins: [useManagedFederation(), useApolloUsageReport()],
logging: 'debug',
});

const server = createServer(yoga);
Expand Down
Loading

0 comments on commit 86ae099

Please sign in to comment.