Ah thank you, you found an error in the snippet. I just changed it but you're correct, since the module is called graphql_schema we must refer to it like that.
Originally I had it called 'schema.rs' until I added the diesel integration (whose migrations overwrite whatever you have in schema.rs)
Another issue (you may be able to glean that I've been slowly working through the article over the past few days):
You don't seem to instruct adding the extern crate diesel; and mod schema; lines to main.rs. That prevented me from compiling after setting up diesel (immediately prior to adding the mutations).
Thank you for being so thorough! I added another snippet at that point adding the imports. Hopefully that is the end of the errata - transpiling code from a project to an article in a digestible way comes with some struggles :D
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ah thank you, you found an error in the snippet. I just changed it but you're correct, since the module is called graphql_schema we must refer to it like that.
Originally I had it called 'schema.rs' until I added the diesel integration (whose migrations overwrite whatever you have in schema.rs)
Another issue (you may be able to glean that I've been slowly working through the article over the past few days):
You don't seem to instruct adding the
extern crate diesel;
andmod schema;
lines to main.rs. That prevented me from compiling after setting up diesel (immediately prior to adding the mutations).Thank you for being so thorough! I added another snippet at that point adding the imports. Hopefully that is the end of the errata - transpiling code from a project to an article in a digestible way comes with some struggles :D