docs(merging_objects): add missing structs in example
@@ -25,6 +25,9 @@ Instead, the `#[derive(MergedObject)]` macro allows you to split an object's res
**Note:** This works for queries and mutations. For subscriptions, see "Merging Subscriptions" below.
```rust
+#[derive(Default)]
+struct UserQuery;
+
#[Object]
impl UserQuery {
async fn users(&self) -> Vec<User> {
@@ -32,6 +35,9 @@ impl UserQuery {
}
}
+#[derive(Default)]
+struct MovieQuery;
+
#[Object]
impl MovieQuery {
async fn movies(&self) -> Vec<Movie> {
