Comments (6)
+1 ... still not working:
directly in image it works: {"counts":"upvoted"}
but through a relation it doesn't:
{"include": {"relation": "image", "scope" : {"counts":"upvoted"}}}
from loopback-counts-mixin.
Never mind!
I got a solution! :)
PM me alexanderkorus
from loopback-counts-mixin.
okay i am glad :) I didn't need this module anymore :)
from loopback-counts-mixin.
For everyone who is looking for a solution:
You can do the count in the loader observe hook
from loopback-counts-mixin.
@Selichio I got it too, but thanks :-)
from loopback-counts-mixin.
Can someone please post an example? Sorry as this thread is too old to comment but any example of it would be very helpful. Thanks in advance!
from loopback-counts-mixin.
Related Issues (9)
- This is working with relationships like HasAndBelongsToMany HOT 1
- add support for filter in headers
- How to filter by counts? HOT 2
- HasManyThrough relation - Error: Invalid relation type: undefined HOT 1
- how can i get two models counts ? HOT 2
- Returns 500 instead of 404 when parent object does not exist
- Can I use it in nodejs query?
- It will returns 500, if the main entity is not find.
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 loopback-counts-mixin.