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

Can't change schema file location. #48

Open
zhaoyi0113 opened this issue Jul 16, 2020 · 1 comment
Open

Can't change schema file location. #48

zhaoyi0113 opened this issue Jul 16, 2020 · 1 comment

Comments

@zhaoyi0113
Copy link

I define my schema.graphql file under ./schema directory. On my serverless.yml file, it has

custom:
   appsync:
      name: ${self:provider.stackName}
      schema: 
         - ./schema/device.graphql
         - ./schema/schema.graphql
         - ./schema/transaction.graphql
         - ./schema/identity.graphql

when I run sls appsync-offline start, I got this error:

Serverless: AppSync Standalone
Serverless: dynamoDB started: http://localhost:62224/
Serverless: ERROR: Error: schema file: /Users/apps/schema.graphql must exist

It seems that it always look for schema.graphql under project root directory.

@plezan
Copy link

plezan commented Oct 20, 2020

I also have the same issue, it's an issue from the AppSync Emulator.

It's a simple fix, i wanted to do a PR to fix it but the repository has been archived,
maybe we need to switch to a forked and maintained version of this emulator

Is there another way to make that change ? Or is there any workaround ?

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

No branches or pull requests

2 participants