Skip to content
Open
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: 8 additions & 0 deletions docs/datafetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ To do so you will have to leverage the `@DgsData.List` annotation, for example:
)
```

Using repeating annotations:

=== "Java"
```java
@DgsData(parentType = "Query", field = "movies")
@DgsData(parentType = "Query", field = "shows")
```

!!! tip
Both `@DgsQuery` and `@DgsMutation` can't be defined multiple times in a single method. Please use `@DgsData`
instead and explicitly define the `parentType` to match either `Query` or `Mutation`.
Expand Down