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

fix: incorrect path to schema #649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DennisCiba
Copy link

After updating to serverless v4 I ran into an issue where the generated schema was always empty.

We are using serverless-compose, so we have a folder structure like this:

services/
  service-1/
    serverless.yml
  service-2/
    serverless.yml
serverless-compose.yml

It seems that the schema files are paths relative to the service directory, but the cwd is the root folder, thus none of the schema files can be found.

This PR should fix that problem and also resolve #648.

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

Successfully merging this pull request may close these issues.

graphQLSchema Empty After Upgrading to Serverless Framework v4
1 participant