Skip to content

Commit

Permalink
refactor: split ndc-spec schema generation (#512)
Browse files Browse the repository at this point in the history
### What

I'm about to add version 2 of the auto-generated mutations, and I'd like
to split the schema module so that each mutation version is in their own
module. This refactor makes it easier to do so.

No code was harmed in the process.

### How

We take `schema.rs`, take the helpers functions and put them in
`schema/helpers.rs`, take each mutation version and put it in its own
`schema/mutation/<version>.rs` module, take the mutation to procedure
code and put it in `schema/mutation/mod.rs` and the rest put in
`schema/mod.rs`.
  • Loading branch information
Gil Mizrahi committed Jun 27, 2024
1 parent 703bc93 commit c9bf0d4
Show file tree
Hide file tree
Showing 6 changed files with 873 additions and 833 deletions.
Loading

0 comments on commit c9bf0d4

Please sign in to comment.