You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a technical issue but rather something I'm trying to figure out. Is there any way not to replicate data from mongo to neo4j until specific condition (logic) is satisfied. I have some data for instance that will be under "pending" status and I would want to insert it to neo4j only when the data is approved.
If this is not possible, anything you can suggest to make this happen ?
Thanks a bunch 👍
The text was updated successfully, but these errors were encountered:
Currently, the configuration does not allow for conditionally replicating data. However, support for this could be added by inspecting the update. How would you prefer to define this logic? By checking the value of a property on the document?
Since you can currently specify what data is replicated at the collection (and property level), one way to make this work now would be to maintain the documents in two separate collections (say, pendingDocuments, and completedDocuments) and only replicate completedDocuments to Neo4j. Once the status changes, then move the documents from pendingDocuments to completedDocuments and they will then be replicated to Neo4j.
Oki, thanks a lot. I guess I'll do what you suggested and if this changes in the future, will switch to the conditional way.
Also another very important question while I have you here. Is there any other way to reference documents except something_id ? I realized that doc manager seeks for keys ending with _id and relates documents by the id.
Here is my mongoose schema and below it the results I would want to have replicated in neo4j:
Hey guys,
This is not a technical issue but rather something I'm trying to figure out. Is there any way not to replicate data from mongo to neo4j until specific condition (logic) is satisfied. I have some data for instance that will be under "pending" status and I would want to insert it to neo4j only when the data is approved.
If this is not possible, anything you can suggest to make this happen ?
Thanks a bunch 👍
The text was updated successfully, but these errors were encountered: