I moved flatten function to util.js and create method flatteningMappingTemplatesAndDataSources. In this way i can flatten mappingTemplates and dataSources when we load configuration from file and when serverless configuration object has been passed from outside (e.g. using serverless-appsync-offline plugin).
I moved
flatten
function toutil.js
and create methodflatteningMappingTemplatesAndDataSources
. In this way i can flattenmappingTemplates
anddataSources
when we load configuration from file and when serverless configuration object has been passed from outside (e.g. using serverless-appsync-offline plugin).