Now, to the D of the CRUD

You can also do this approach. Do not delete the data, but filter as “deleted”. So you can do an analysis of possible fraud.

{
    users(func: has(__is_users)) @filter(  eq(user, "test") ) {
      uid
      user
     emails @filter(not has(_deletedNode) ) {
          uid
          email
      }
    }
}

Let’s say you have an application facing the financial world. Using this approach. You can identify which user X had already used this data in an old account. And then you can raise a flag to analyze that case.

You could even trace documents that way. If someone used the same official document ID or “CPF” (Brazilian Document). Your application will “know” as that way and then you create a logic to “follow the money”.

2 Likes