infrahub 0.2.1

small graphql client for infrahub
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# examples

run examples against a local infrahub:

```bash
INFRAHUB_URL=http://localhost:8000 INFRAHUB_TOKEN=... cargo run -p infrahub --example simple_query
INFRAHUB_URL=http://localhost:8000 INFRAHUB_TOKEN=... cargo run -p infrahub --example typed_query
```

examples:

- `simple_query.rs` - raw graphql query
- `typed_query.rs` - typed graphql query with ad-hoc structs
- `generated_api.md` - generated crate `api()` workflow (list/get/paginate, with notes on mutation helpers)