Giter VIP home page Giter VIP logo

Comments (7)

craftzdog avatar craftzdog commented on July 18, 2024

https://forums.aws.amazon.com/thread.jspa?threadID=114032

AWS engineer says "The AWS Persistence Framework for Core Data should remove the attribute from the row when an existing attribute is set to nil or an empty string."

hope it helps.

from vogels.

ryanfitz avatar ryanfitz commented on July 18, 2024

I say we remove empty strings, we already do a similar check for null values and remove the attribute before sending off to dynamodb

from vogels.

marko-ciric avatar marko-ciric commented on July 18, 2024

@ryanfitz actually it fails for null values too. The only way it works is, as @noradaiko pointed, to set it to undefined.

from vogels.

whiteboardmonk avatar whiteboardmonk commented on July 18, 2024

@ryanfitz actually it fails for null values too. The only way it works is, as @noradaiko pointed, to set it to undefined.

@marko-ciric Setting an attribute to null rightly deletes the attribute from the row for me.

from vogels.

RodH257 avatar RodH257 commented on July 18, 2024

I'm still having an issue with empty strings on nested properties, does this fix only work on the parent keys?

from vogels.

set-killer avatar set-killer commented on July 18, 2024

Try with:

schema.String('asset').default("")

from vogels.

RodH257 avatar RodH257 commented on July 18, 2024

I don't think that helps? The problem is that dynamodb doesn't accept empty strings, and vogels is only cleaning up empty strings at the top level of the object (ie it's not doing a deep search):
I think the core problem is that this omit, needs to be some sort of 'omit deep' (unfortunately lodash doesn't have that)
6fd7c2f#diff-50e3aa130a4f97a42ee2cf111c7b1d9dL10

I wonder if there's a way to make it happen at serialisation time rather than as a separate step

from vogels.

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.