Lambda resolver documentation broken
thordickinson opened this issue · 2 comments
thordickinson commented
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
Please fix this issue. This part of the docs is invalid: Inline DataSources.
bboure commented
Sorry,
I'll fix this asap.