Skip to content

Commit

Permalink
Slight README tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hwillson committed Apr 29, 2021
1 parent 53fc161 commit a86090b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ Testing environments that don't support Webpack require additional configuration
With the webpack loader, you can import fragments by name:

In a file called `query.gql`:

```graphql
fragment MyFragment1 on MyType1 {
...
Expand All @@ -215,9 +216,7 @@ import { MyFragment1, MyFragment2 } from 'query.gql'
```

Note: If your fragment references other fragments, the resulting document will
have multiple fragments in it. In this case you must still specify the fragment
name when using the fragment. For example, with `apollo-client` you would specify
the `fragmentName` option when using the fragment for cache operations.
have multiple fragments in it. In this case you must still specify the fragment name when using the fragment. For example, with `@apollo/client` you would specify the `fragmentName` option when using the fragment for cache operations.

### Warnings

Expand Down

0 comments on commit a86090b

Please sign in to comment.