Skip to content

Commit

Permalink
handle batched operations
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin authored and ardatan committed Aug 15, 2024
1 parent a6e3f25 commit a75eae6
Show file tree
Hide file tree
Showing 13 changed files with 1,067 additions and 131 deletions.
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 a75eae6

Please sign in to comment.