Comments (2)
Interestingly what works is this:
Request mapping template:
{
"version":"2017-02-28",
"operation":"PUT",
"path":"/user/twitter/$util.autoId()",
"params":{
"body":{
"name":"$context.arguments.name",
"screen_name":"$context.arguments.screen_name",
"location":"$context.arguments.location",
"description":"$context.arguments.description",
"followers_count":$context.arguments.followers_count,
"friends_count":$context.arguments.friends_count,
"favourites_count":$context.arguments.favourites_count,
"posts": [{"tweet": "$context.arguments.post"}]
}
}
}
But my ES schema doesn't have posts object (in the first screenshot). So is there no way we can do this mapping in the response mapping layer?
from aws-mobile-appsync-sdk-js.
last solution worked so closing this ticket.
from aws-mobile-appsync-sdk-js.
Related Issues (20)
- Getting apollo-link Type error on build HOT 2
- Subscriptions are disconnected after background/lock and unlock the app in React-Native HOT 8
- Type 'CredentialsGetter | undefined' is not assignable to type 'CredentialsGetter' with createAppSyncLink
- TypeError: Cannot read properties of null (reading 'match') HOT 2
- aws-appsync-react not installing in React 18 HOT 3
- Buffer is now only available as a polyfill on the new vite builds. Module "buffer" has been externalized for browser compatibility HOT 1
- Getting "The request signature we calculated does not match the signature you provided." when creating subscriptions using aws-appsync-subscription-link and apollo client v3 HOT 3
- undefined Unable to resolve module stream from
- Spread operator does not work with util.appendError HOT 1
- npm install fails with typescript error
- deepdish:connect errors with token expiry.
- Error: Unable to resolve module AccessibilityInfo
- Vanilla AWS SDK v3 + Apollo V3 query guide
- Managing Reconnection Attempts for AWS AppSync Subscription with Apollo
- useSubscription does not conform to Apollo HOT 2
- buildMutation not working properly with header
- Passing a header into AWSAppSyncClient?
- Console showing error
- Refused to set unsafe header "host" with IAM auth link
- Module size optimization for production
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-mobile-appsync-sdk-js.