Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multi-project setups #48

Closed
schickling opened this issue Nov 20, 2017 · 2 comments
Closed

Support for multi-project setups #48

schickling opened this issue Nov 20, 2017 · 2 comments

Comments

@schickling
Copy link
Contributor

schickling commented Nov 20, 2017

graphql-cli doesn't seem to support multi project configurations like this:

{
  "projects": {
    "database": {
      "schemaPath": "database.graphql",
      "extensions": {
        "endpoints": {
          "default": {
            "url": "https://api.graph.cool/simple/v1/xxx",
            "subscription": "wss://api.graph.cool/simple/v1/xxx"
          }
        }
      }
    },
    "gateway": {
      "schemaPath": "gateway.graphql",
      "extensions": {
        "endpoints": {
          "dev": {
            "url": "http://localhost:4000",
            "subscription": "ws://localhost:4000"
          }
        }
      }
    }
  }
}

Error message:

image

It should be possible to provide the project name via a --project argument.

@schickling
Copy link
Contributor Author

schickling commented Nov 20, 2017

Update: As a workaround you can set the GRAPHQL_CONFIG_PROJECT env var to your desired project.

@schickling
Copy link
Contributor Author

Fixed in 2.0.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant