Comments (5)
Could you add it to the Paged
class? In DocumentClient, Count
is in the same object as LastEvaluatedKey
from dynamodb-onetable.
That worked out really REALLY cleanly. Thank you. I was going down the wrong path before that.
from dynamodb-onetable.
Thanks, I'll add that to our list.
As you can see, we try to keep our issue list very low, so this should get attention soon.
I'll update here over the next week.
from dynamodb-onetable.
We're prototyping this.
It doesn't work well having find/scan and variants return a count or items. In typescript, this can be achieved, but then declarations for return values will be number | Entity[]. This causes problems then when those items are used in other APIs that don't allow numbers.
So it looks like we need to add findCount, scanCount, queryItemsCount etc, that return the count.
Not as clean as I'd like, but better than complicating the return type for TypeScript I think.
Thoughts?
from dynamodb-onetable.
That sounds like a good direction. I'll play with that. Thank you.
from dynamodb-onetable.
Related Issues (20)
- Compound global index not updated if only 1 of 2 properties passed to the update function HOT 1
- Updating unique template field does not remove unique record HOT 2
- "CredentialsProviderError: The SSO session associated with this profile has expired" in "overview" sample... HOT 2
- Create method does not create the sort key if one attribute is undefined HOT 4
- Connecting OneTable to a local dynamodb instance
- Support for Mapped Types HOT 3
- Please Help: Update Problem (referenced attribute) HOT 3
- OneSchema type for getCurrentSchema() not set HOT 2
- Update operation does not remove object from array HOT 1
- Help: retrieving items by GSI1 HOT 1
- nested props are not getting mapped correctly with map attribute
- Getting error while update on object that contains undefined attribute value in it. HOT 2
- Cannot Transparently Pass On JSON String From Previously Unncrypted Field HOT 1
- queryItems requires { hidden:true } to support groupByType for AWS SDK v3 HOT 4
- Duplicate Update Allowed for Scoped Unique Field HOT 3
- Batch Request: To await or not await HOT 1
- `find` ignores index search key expression HOT 3
- Not setting undefined values on read to required default values HOT 1
- Logging errors emitted for find requests with fields selection not including required fields HOT 9
- Pagination not working - Pass options.removeUndefinedValues=true to remove undefined values HOT 3
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 dynamodb-onetable.