GraphQL and DQL interoperability is certainly a great feature of Dgraph : you can exposed a strongly typed API to populate and query your data with GraphQL and you can still access and update the entire graph using DQL to add metadata, create new relationships based on graph analysis (proximity, similarity, rating, …), detect patterns etc…
We can use DQL to do some data cleaning when needed. For example, when re-deploying a new version of GraphQL schema you can leave behind data created by the previous version.If you change a type attribute to mandatory and you have some data of this type without this attribute already in the graph…
I’d like to collect the DQL recipes
the community found to do data cleaning.
The goal is to share this important knowledge and to investigate what should be in the documentation or in the product itself or offered as a data cleaning tool to help schema migration.
I’m interested in
- the situation you encountered
- the queries ‘detecting’ problematic situations
- the upsert queries ‘mitigating’ those situations.
Contribute by simply replying to this post.
I’ll compile the recipes in a blog.
Thanks.