GraphQL with Dgraph is a versatile beast capable of handling diverse problems. In this video released by Dgraph Labs, we demonstrate how GraphQL on Dgraph can tackle a couple of problems from the Master Data Management (MDM) domain, namely Data Lineage and Workflow Processing.
An MDM system is often used to curate and improve the quality of data of an entity. For example, certain attributes of a customer, such as name, age, title, etc. are very important for unique identification and communications. It is quite common for MDM systems to change or modify information such as a title or address to make sure that it meets quality standards. For example, country and state codes may need to be transformed and stored as per ISO format.
As entity information is curated through the MDM system, it becomes important to have a view of how an attribute attained a particular value. This view is also called ‘lineage’. Lineage is of great significance in certain businesses, particularly those in the finance and insurance domain. For example, the date of birth gained from a passport is more trustable as opposed to data entry at over phone or chat, and lineage can show us when and where a value came from.
As part of this demo, we will use the interfaces and type modeling features of GraphQL to model lineage as well as mutations to populate lineage data for a customer. The models used are quite elementary, and are aimed at demonstrating the idea.