Skip to content

Commit

Permalink
docs(fragments): Typo, grammar and formatting fixes (#9802)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Jan 5, 2024
1 parent 5734dcc commit ac6131b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/graphql/fragments.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ import { fragment } from '@redwoodjs/web/apollo'

Access typename of fragment you registered.


```ts
import { typename } from '@redwoodjs/web/apollo'
```
Expand All @@ -166,6 +165,7 @@ fragment BookInfo on Book {
author
publicationYear
}
```

the `typename` is `Book`.

Expand Down Expand Up @@ -294,9 +294,9 @@ import possibleTypes from 'src/graphql/possibleTypes'
>
```

To generate the `src/graphql/possibleTypes`, configure the `redwood.toml`:
To generate the `src/graphql/possibleTypes` file, enable fragments in `redwood.toml`:

```toml title=redwood.roml
```toml title=redwood.toml
[graphql]
fragments=true
fragments = true
```

0 comments on commit ac6131b

Please sign in to comment.