Skip to content

Cannot use the plugin with multiple AppSync APIs #90

@louislatreille

Description

@louislatreille

Describe the bug
I have a serverless project with multiple AppSync APIs configured.

E.g.

custom:
  appSync:
    - name: api-one
       ...
    - name: api-two
       ...
    - name: api-three
       ...

When deploying the stack locally with sls offline start, I can only make requests against the first API defined in the list. Trying to make requests on other APIs returns an error stating that the operation doesn't exist.

Cannot query field "getField" on type "Query"."

To Reproduce

  1. Create a project with two or more AppSync APIs.
  2. Start it with sls offline start.
  3. Make a request against any API except the first one.

Expected behavior
An endpoint (or host on different ports) exist for each AppSync API

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions