Comments (7)
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.
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.
@ryanfitz actually it fails for null values too. The only way it works is, as @noradaiko pointed, to set it to undefined.
from vogels.
@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.
I'm still having an issue with empty strings on nested properties, does this fix only work on the parent keys?
from vogels.
Try with:
schema.String('asset').default("")
from vogels.
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)
- Setting StreamSpecification option during table create/update? HOT 1
- ConfigError: Missing region in config
- Secondary Index - ValidationException: The provided starting key is invalid HOT 2
- Vogels is getting stuck when Dynamodb call timeouts HOT 2
- Is $add atomic? (no doc reference) HOT 2
- How can i get all the records using scan ... now i am getting only 780 items .. I need to scan all 50000 items HOT 4
- Dynamodb Error: Nodejs App with dynamodb does not work in docker but works without it HOT 6
- Using eachSeries causes slow table creation
- Problem writing tests using mocha with vogels HOT 12
- Multiple Batch Get Items with different Tables.Handling table references
- scan().limit() return 0 Count and items HOT 1
- How to handle array of objects in models HOT 1
- conditional get an item using get() HOT 1
- Empty object in Dynamo DB when using conditional validation
- Retry logic will indefinitely retry
- strongly consistent reads in scan operation
- Support for Amazon Trust Services (ATS)
- Enable encryption (SSESpecification) when creating table
- Abandoned project?
- Adding extra 's' after the table name HOT 1
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 vogels.