Skip to content

Multiple graphs #3621

@swizzlr

Description

@swizzlr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that have a question which should be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions