Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmp hide option #1224

Merged
merged 2 commits into from Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)