-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing docs in a linked collection leads to <linkedId>: null in another linked collection #450
Comments
What is Lines 288 to 320 in 842dbb1
grapher/lib/links/linkTypes/linkOne.js Lines 28 to 44 in 842dbb1
You could use |
Hello @theodorDiaconu !
You might remember me as the "bit annoying guy with way too many Grapher questions" some months/years ago! 😁
So I have been using grapher in production successfully for many years now and still am very happy.
For months I have had the problem that in some collections more and more documents popped up with
<linkedCollId>: null
, rendering them simply unuseable.I have the following case:
I have 2 collections:
items
andprices
.items
Links:prices
links:In one of the most important functions of my app, I sometimes have to delete many
items
documents. At some point in this function I have an array with itemIds which should be deleted.So I FIRST deleted the linked prices, THEN I delete the items themselves.
This does NOT SEEM TO WORK. The above code results in many documents in the
prices
collection withitemId: null
!I really need some input here. This is just an example, ALL of my linked collections are full of documents with
<myLinkedIdHere>: null
.Any input is appreciated!
Cheers, Patrick
The text was updated successfully, but these errors were encountered: