-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tighter integration with persisted queries and GraphQL Codegen (#414)
- Loading branch information
1 parent
c43f485
commit b8b7d12
Showing
6 changed files
with
14,185 additions
and
7,390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
``` |
Oops, something went wrong.