sid88in / serverless-appsync-plugin

serverless plugin for appsync
MIT License
950 stars 186 forks source link

Lambda resolver documentation broken #581

Open thordickinson opened 1 year ago

thordickinson commented 1 year ago

Hey folks, I think that there is a small error in the documentation. The sample shows this, as the way to define a lambda resolver:

appSync:
  resolvers:
    Query.user:
      dataSource:
        type: 'AWS_LAMBDA'
        config:
          function:
            timeout: 30
            handler: 'functions/getUser.handler'

But that sample is missing the functions property, which it makes impossible to create a lambda resolver, this would be the fix.

appSync:
  resolvers:
    Query.user:
      functions:  # <- Here
        - dataSource:
            type: 'AWS_LAMBDA'
            config:
              function:
                timeout: 30
                handler: 'functions/getUser.handler'

Hope this helps the entire community

andrew-sol commented 11 months ago

Please fix this issue. This part of the docs is invalid: Inline DataSources.

bboure commented 11 months ago

Sorry,

I'll fix this asap.