Giter Club home page Giter Club logo

Comments (2)

sid88in avatar sid88in commented on May 12, 2024

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"}]
        }
    }
}

Query:
screen shot 2018-01-21 at 2 13 37 pm

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.

sid88in avatar sid88in commented on May 12, 2024

last solution worked so closing this ticket.

from aws-mobile-appsync-sdk-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.