Skip to content

Commit

Permalink
Merge pull request #1224 from Quramy/tmp-hide-option
Browse files Browse the repository at this point in the history
tmp hide option
  • Loading branch information
Quramy committed Mar 14, 2024
2 parents d9e704c + eca7e18 commit 0c143db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -282,13 +282,17 @@ It's useful if other code generator copies your GraphQL Template Strings.
> [!NOTE]
> Currently, the `exclude` option only accepts file or directory names. Wildcard characters such as `*` and `**` are not allowed.
<!--
### `enabledGlobalFragments`
It's optional and the default value is `false`. If enabled, the plugin automatically searches for and merges the dependent fragments for the target GraphQL operation in the TypeScript project.
> [!IMPORTANT]
> Fragments must be given a unique name if this option is enabled.
-->
### `localSchemaExtensions`
It's optional. If you want to extend server-side schema, derived from `schema` option, you can set path of SDL file of your local extension.
Expand Down
24 changes: 6 additions & 18 deletions project-fixtures/react-apollo-prj/GRAPHQL_OPERATIONS.md
Expand Up @@ -4,6 +4,10 @@
### GitHubQuery

```graphql
fragment RepositoryFragment on Repository {
description
}

query GitHubQuery($first: Int!) {
viewer {
repositories(first: $first) {
Expand All @@ -14,13 +18,9 @@ query GitHubQuery($first: Int!) {
}
}
}

fragment RepositoryFragment on Repository {
description
}
```

From [src/index.tsx:11:19](src/index.tsx#L11-L22)
From [src/index.tsx:11:19](src/index.tsx#L11-L23)

## Mutations

Expand All @@ -34,19 +34,7 @@ mutation UpdateMyRepository($repositoryId: ID!) {
}
```

From [src/index.tsx:24:22](src/index.tsx#L24-L30)

## Fragments

### RepositoryFragment

```graphql
fragment RepositoryFragment on Repository {
description
}
```

From [src/index.tsx:5:32](src/index.tsx#L5-L9)
From [src/index.tsx:25:22](src/index.tsx#L25-L31)

---
Extracted by [ts-graphql-plugin](https://github.com/Quramy/ts-graphql-plugin)

0 comments on commit 0c143db

Please sign in to comment.