I have a monorepo with a few different GraphQL projects in it. Because of this, I need to configure different parts of the project to use different local schema.graphql files.
graphql-config seems to support this use-case nicely, but unfortunately the VSCode plugin does not actually provide auto-complete and the like, which I'm looking for (or at least, this is broken right now). So I'm trying to see if I can get the Apollo plugin installed instead.
I have an apollo.config.js file within one of the projects in my monorepo, and the file is discovered at least. Unfortunately, all of the relative paths are not relative to the config file, but rather the project root. So, the file looks like this:
module.exports = {
client: {
includes: [
'./packages/original-series-engine/addon/**/*.graphql',
'./packages/original-series-engine/addon/**/*.js'
],
service: {
name: 'Original Series Workflow API',
localSchemaFile:
'packages/original-series-engine/addon/graphql/schema.graphql'
}
}
};
Even though the file itself lives at packages/original-series-engine/apollo.config.js.
Is there a different way to configure different schemas for different parts of the project, so I can move the config file up to the root of the project? If not, is there a way to "nicely" support multiple files, with relative paths that make sense?
I have a monorepo with a few different GraphQL projects in it. Because of this, I need to configure different parts of the project to use different local
schema.graphqlfiles.graphql-configseems to support this use-case nicely, but unfortunately the VSCode plugin does not actually provide auto-complete and the like, which I'm looking for (or at least, this is broken right now). So I'm trying to see if I can get the Apollo plugin installed instead.I have an
apollo.config.jsfile within one of the projects in my monorepo, and the file is discovered at least. Unfortunately, all of the relative paths are not relative to the config file, but rather the project root. So, the file looks like this:Even though the file itself lives at
packages/original-series-engine/apollo.config.js.Is there a different way to configure different schemas for different parts of the project, so I can move the config file up to the root of the project? If not, is there a way to "nicely" support multiple files, with relative paths that make sense?