Comments (5)
@lfades any idea about this?
from cottz-publish-relations.
@lfades any update, please
from cottz-publish-relations.
Hello! I'm no longer supporting this package because of lack of time and of the current state of Meteor, but I'm going to try to answer the question, I don't think that the comments or books should be removed, the cursors are stopped in the server, but you can manually remove the documents from the cache in the client.
from cottz-publish-relations.
thank you for your reply. how to manually remove the documents from the cache in the client? just like this:
Authors.find(authorId).observeChanges({
removed(id) {
const bookIds = Books.find({authorId: id}).map(book => book._id);
Books.remove(_id: {$in: bookIds});
Comments.remove({bookId: {$in: bookIds}});
}
})
Meteor platform is still alive, why you are running away meteor.
from cottz-publish-relations.
it was a performance and scalability decision, my current stack is Next.js + Apollo / Node.
The solution you're using may work, if you can do it from the client using minimongo, that may be better.
from cottz-publish-relations.
Related Issues (16)
- Package description identical to cottz-publish HOT 2
- Changing filters reactively HOT 3
- How handle array of objects in collection? HOT 2
- this.join unexpected behaviour HOT 7
- What are the advantages over reywood:publish-composite package HOT 5
- Add support for server minimongo HOT 3
- Is 'this.ready()' obligatory? HOT 4
- seems broken HOT 1
- Help Plz: Filter/remove some documents from a this.cursor() - call? HOT 4
- one to many relationship HOT 10
- Need help getting started HOT 6
- Crossbar problem! HOT 4
- How to get doc for relations fields? HOT 4
- Please example how to "return [cursor1, cursor2, cursor3];" HOT 2
- Trying this.listen example 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 cottz-publish-relations.