# query.private.many_relation

- **Module:** query.private
- **Package:** libtmux
- **Language:** Rust
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/query/private.rs#L837
- **Page:** https://libtmux.org/en/rs/latest/reference/query-private-many_relation/

```
query.private.many_relation(target: &'static str, field: &'static str) -> ManyRelation<From, To>
```

Construct a to-many relation handle for generated code.

## Example

```rust
use libtmux::query::ManyRelation;
use libtmux::query::__private;
struct Parent;
struct Child;
let field: ManyRelation<Parent, Child> =
    __private::many_relation("parent", "children");
assert!(format!("{field:?}").contains("children"));
```
