Code Monkey home page Code Monkey logo

Comments (3)

willfarrell avatar willfarrell commented on June 10, 2024

Thanks for reporting. We use @aws-sdk/util-dynamodb internally for unmarshall. I'm surprised it doesn't support this. I would suggest opening an issue at https://github.com/aws/aws-sdk-js-v3. If you don't get a response, we have a faster unmarshall implementation inside of @middy/event-normalizer that we can swap in that does support empty/undefined values.

from middy.

xle avatar xle commented on June 10, 2024

thanks for your answer. I checked the code in the event-normalizer and that will solved the problem as its the sdk convertToNative function who throw an exception when data is empty.
I will open an issue for them.
In the same time in order to solve my problem quickly and before any implementation decisions is taken, i will implement my own middleware using your unmarshall method.

from middy.

willfarrell avatar willfarrell commented on June 10, 2024

I'm going to close for now, please reopen if we need to revisit this.
I am curious why you're fetching an item that is undefined and the use case around it. The original idea around this middleware was to pull a config used for all requests, in this case it would always exist.

from middy.

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.