Skip to content

Commit

Permalink
docs: Write about go to definition feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Mar 27, 2024
1 parent 7276e58 commit 6ed82f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This plugin has the following features:
- As TypeScript Language Service extension:
- Completion suggestion
- Get GraphQL diagnostics
- Go to fragment definition
- Display GraphQL quick info within tooltip
- As CLI
- Generate ts type files from your GraphQL operations in your TypeScript sources
Expand Down Expand Up @@ -382,6 +383,8 @@ const appQuery = graphql(`
In the above example, note that `${postFragment}` is not in the `appQuery` template string literal.
If this option is set `true`, you can go to definition of the fragment from the location where the fragment is used as spread reference.
> [!IMPORTANT]
> This option does not depend on whether the query and fragment are combined at runtime.
> Whether or not query and fragment are eventually combined depends on the build toolchain you are using.
Expand Down

0 comments on commit 6ed82f8

Please sign in to comment.