Comments (4)
This would also require generating a few new Query subtypes like countByRepresentative
.
from amplifycountdirective.
Ideally this would be implemented as a @count
directive on the individual index fields. It should check if they also have the @index
directive and fail if they do not.
from amplifycountdirective.
I believe I have added a way to use @count
on Fields as well, its in a fork at the moment as I'm not what the next steps are, I am unable to install it in my area as I get an npm error. If you could take a look and let me know what I need to do to test this and or get it in here.
I have also added a variable to the Directive called CountType as there is a DISTINCT
query on DynamoDB that might be quite useful
from amplifycountdirective.
Can you open a pull request please?
from amplifycountdirective.
Related Issues (10)
- Unable to use count inside a lambda function HOT 29
- Unable to import custom transformer module(amplify-count-directive). 🛑 You may fix this error by editing transformers at amplify-count-directive/transform.conf.json HOT 2
- I got error message "Request failed with status code 401" HOT 1
- Correctly pluralise query Type
- "ExpressionAttributeNames must not be empty"
- Support an auth filter
- Add an efficient count for the entire unfiltered table
- Unable to add the directive to more than one model HOT 20
- Unable to filter the count using attributeExists on its own 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 amplifycountdirective.