Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

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