Skip to content

Commit

Permalink
0.1rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
zhitkoff committed Sep 18, 2024
1 parent ff27371 commit 57c4210
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 40 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# graphql-codegen-default-documents

Plugin for graphql-codegen to generate default documents (queries, mutations, subscriptions and 'AllFields' fragments) from GraphQL schema.

Inspired by <https://github.com/argano/graphql-codegen-documents>
Plugin for graphql-codegen to generate default documents, such as operations (queries, mutations, subscriptions) as well as 'AllFields' fragments for defined types from your GraphQL schema.

## Installation

Expand Down Expand Up @@ -50,9 +48,14 @@ const config = {
};
```

## Acknowledgements

Inspired by <https://github.com/argano/graphql-codegen-documents>

## TODO

- Handle Unions and Abstract Types
- A bit of cosmetics (indents and new lines)
- Optional __typename
- Test cases
- More examples in README
73 changes: 38 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
{
"name": "graphql-codegen-default-documents",
"version": "0.1.0",
"description": "GraphQL Code Generator plugin for generating documents",
"description": "GraphQL Code Generator plugin for generating default documents (queries, mutations, subscriptions and 'AllFields' fragments) for your GraphQL schema.",
"keywords": [
"graphql",
"codegen",
"graphql-codegen",
"plugin",
"documents",
"queries",
"mutations",
"subscriptions",
"fragments"
],
"author": "Yury Zhytkou, zhitkoff@gmail.com",
"repository": "git@github.com:zhitkoff/graphql-codegen-documents.git",
"repository": "git@github.com:zhitkoff/graphql-codegen-default-documents.git",
"license": "MIT",
"scripts": {
"build": "tsc -m esnext --outDir dist/esnext && tsc -m commonjs --outDir dist/commonjs",
Expand Down

0 comments on commit 57c4210

Please # to comment.