Comments (3)
@devmetal I ran into the same issue today.
The problem is indeed that the mappingTemplates
template is an array of arrays and is not flattened by the emulator like it is by the appsync-plugin
Same problem occurs after implementing this: sid88in/serverless-appsync-plugin#216 for the datasources.
And also when using an object as datasources
instead of an array:
datasources:
dataName:
type: type: AWS_LAMBDA
from aws-utils.
@bboure Thank you :) It will be great if we can use same modular structure in data sources as we used in mapping templates :) I think my pr will solve this in appsync emulator. Thank you for support, and thanks for this big improvement in appsync plugin i can't wait to try it :)
from aws-utils.
Hi guys, I'm facing with this problem right now. Code written by @devmetal solve the problem, but only if you call function loadConfiguration.js
that flat the mappingTemplates
property. If you receive a serverless configuration from outside (server.js [line: 44])
const createSchema = async ({
serverless,
schemaPath = null,
pubsub,
dynamodb,
} = {}) => {
let serverlessConfig = {};
let serverlessDirectory;
if (typeof serverless === 'object') {
serverlessConfig = serverless.service;
serverlessDirectory = serverless.config.servicePath;
}
You'll receive the same message: The "path" argument must be of type string. Received type undefined
. I'm thinking to split the part that load configuration from file and move construction and flattening of structure into a new common function (e.g. normalizeConfiguration
).
What do you think?
from aws-utils.
Related Issues (20)
- Cannot find function config for function : undefined HOT 1
- Failure trying to run tests HOT 3
- ValueMapper: JavaString HOT 2
- Feature request: Aurora (RDS) Serverless support HOT 1
- AppSync Emulator - Support Condition Expressions
- AppSync Emulator - Support $context.stash
- appsync emulator resultItems mapping template example does not work in AWS
- [appsync-emulator-serverless] Does not respect multiple appsSync API's in config HOT 2
- AppSync Emulator - Support RegEx in string split
- Cannot Install on Windows HOT 1
- [appsync-emulator-serverless] Conflicting peer dependencies
- Bug with getting PID by port HOT 9
- Lambda datasource docker HOT 12
- Emulator does not throw error when AppSync does
- AppSync Emulator - AWSEmail and AWSURL HOT 1
- Incorrect string equality in VTL templates HOT 1
- Unable to Invoke lambda function HOT 2
- Mismatch between AWSJSON and AppSync
- Assertions within createSchema method prevent DynamoDB from being null HOT 1
- Incorrect $util.isNullOrEmpty check in appsynce-emulator HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-utils.