Comments (3)
Doing this now, but even if we include rowKeyValue into the create function, the static createEntity in https://github.com/nestjs/azure-database/blob/master/lib/table-storage/azure-table.mapper.ts#L36 needs to be updated as well, yes? otherwise it's just going to replace rowKeyValue with a GUID...
from azure-database.
my other thought was simply modifying
tostatic createEntity(partialDto, rowKeyValue) {
and updating
to: if (null == partialDto.RowKey) {
entityDescriptor.RowKey._ = rowKeyValue
}
else {
entityDescriptor.RowKey._ = partialDto.RowKey;
}
This way, we can define a RowKey in the entity / DTO which will take precedence, or if we don't implicitly define a RowKey a GUID will be created.
Update: looks like we were both on the same correct path - there were a few extra changes required. Submitting PR now :)
from azure-database.
closed in 070bad3
from azure-database.
Related Issues (20)
- Azure table : concurrent update strange behavior HOT 3
- Invalid Gitter Chatroom Link in the Badge is Invalid
- Action Required: Fix Renovate Configuration
- Add support for async module initialization HOT 1
- Te package no contains Cosmos DB library HOT 6
- Cannot find module '@nestjs/azure-database' or its corresponding type declarations. HOT 7
- Class 'AzureTableStorageService' incorrectly implements interface 'TableService' HOT 3
- Regular Expression Denial of Service (ReDoS) HOT 1
- Dependency Dashboard
- Cosmos DB Mongodb API HOT 1
- How can a Table Query be performed on Azure Table Storage HOT 1
- Connection to Cosmos Hangs HOT 1
- Batch operations
- CosmosDB Error on version 9+ HOT 13
- getModelToken should be exported
- azure-storage is deprecated HOT 3
- Migrate off `@azure/ms-rest-js`
- Disable DEBUG level logging in nestjs/azure-database
- strictNullChecks must be false
- Is there a plan to support hierarchical partition keys? HOT 5
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 azure-database.