Skip to content

Commit

Permalink
Tighter integration with persisted queries and GraphQL Codegen (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Feb 23, 2024
1 parent c43f485 commit b8b7d12
Show file tree
Hide file tree
Showing 6 changed files with 14,185 additions and 7,390 deletions.
16 changes: 16 additions & 0 deletions .changeset/beige-pans-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@apollo/generate-persisted-query-manifest": minor
---

Add ability to parse documents generated by GraphQL Codegen's [persisted documents](https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#persisted-documents) feature.

```ts
// persisted-query-manifest.config.ts
import { fromGraphQLCodegenPersistedDocuments } from '@apollo/generate-persisted-query-manifest';

const config = {
documents: fromGraphQLCodegenPersistedDocuments('./path/to/persisted-documents.json')
};

export default config;
```
Loading

0 comments on commit b8b7d12

Please sign in to comment.