When I attempt to run the codegen, I get:
✔ Parse configuration
❯ Generate outputs
❯ Generate src/types/Graphql.re
✔ Load GraphQL schemas
✔ Load GraphQL documents
✖ Generate
→ Module names must start with an uppercase letter.
✔ Generate src/types/Apollo.re
I'm pretty sure this is due to the fact that the codegen is attempting to create a module using type names that are auto-generated by neo4j-graphql-js, some of which begin w/ an underscore.
For example:
type _AddArtifactAttractorPayload {
from: Attractor
to: Artifact
}
Of course, direct conversion of these type names into module names doesn't play nicely w/ Ocaml's module naming conventions.
Would it be possible to allow users of this lib to specify a prefix regex to strip from module names, or some kind of transform function through which to run type names when converting them to modules?
When I attempt to run the codegen, I get:
I'm pretty sure this is due to the fact that the codegen is attempting to create a module using type names that are auto-generated by
neo4j-graphql-js, some of which begin w/ an underscore.For example:
Of course, direct conversion of these type names into module names doesn't play nicely w/ Ocaml's module naming conventions.
Would it be possible to allow users of this lib to specify a prefix regex to strip from module names, or some kind of transform function through which to run type names when converting them to modules?