Open
Description
When using #[derive(GraphQLQuery)]
, after compiling, if you change the query file or the schema file and run cargo build
again, it would do nothing.
This is because compiler is unaware of the change to the file.
To fix this, the macro should insert include_str!
or include_bytes!
into the generated code, so that compiler can be aware of such build dependency.
See pest-parser/pest#272 as an example of this trick.
Metadata
Metadata
Assignees
Labels
No labels