Question
I currently have my apollo schema set up to generate a schema module and then per feature module operations. I now need to support a second graph. Are there any best practices around this? Should I collapse all operations into a single module and then have a module per graph?
Alternatively, if i wanted to get fancy, I considered potentially using some kind of file prefix to indicate which graph the operations belong to, then use two parallel configs to glob for different operations respectively, e.g.
**/*.graph1.graphql and **/*.graph2.graphql. I don't know if this is a terrible idea or not.
Question
I currently have my apollo schema set up to generate a schema module and then per feature module operations. I now need to support a second graph. Are there any best practices around this? Should I collapse all operations into a single module and then have a module per graph?
Alternatively, if i wanted to get fancy, I considered potentially using some kind of file prefix to indicate which graph the operations belong to, then use two parallel configs to glob for different operations respectively, e.g.
**/*.graph1.graphqland**/*.graph2.graphql. I don't know if this is a terrible idea or not.