Skip to content

Commit 971435c

Browse files
Update README.md
Closes #17
1 parent b9f004e commit 971435c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

shopify_function/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ See the [example] for details on usage, or use the following guide to convert an
5858
5959
1. Add `.output.graphql` to your `.gitignore`.
6060
61+
## Viewing the generated types
62+
63+
To preview the types generated by the `generate_types` macro, use the [`cargo doc`](https://doc.rust-lang.org/cargo/commands/cargo-doc.html) command.
64+
65+
```bash
66+
cargo doc --open
67+
```
68+
69+
You can also use the [cargo-expand](https://github.com/dtolnay/cargo-expand) crate to view the generated source, or use the [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) VSCode extension to get [IntelliSense](https://code.visualstudio.com/docs/editor/intellisense) for Rust and the generated types.
70+
6171
---
6272
License Apache-2.0
6373

0 commit comments

Comments
 (0)