Hi. I’m having a very, very bad time with DGraph, now that it comes to extract information from it.
I’m kind a terrified too, as deadlines are coming crushing over my head.
Lets go to the case:
- I have an issues control
- An issue has a category (relationship)
- An issue can have one or many tags (relationship)
- An issue has an author (relationship)
- An issue can have one or more participants (relationship)
- An issue can be from one customer (relationship)
- An issue can be linked to a specific customer department (relationship)
Now, I think thats a good case for a graph db, right? Ok, lets go filter.
The user wants to filter all issues:
- In a period
- AND filtered by category “A”, “B” and “E” << NOT “C” NOR “D”
- AND filtered by tags “T1”, “T4”, “T8” << NOT ANY OTHER TAG
- AND that belongs to “CustomerX”
- AND that be specific to the department “SALES” or “ACCOUNT”
- AND the result should be ordered by creation date
Its a classic compound filter panel where the user tick on checkboxes and the interface refresh the data by combining the user demand to filter the data.
I am now too [dumb | stupid | nervous] to accomplish that.
Can anyone please point me to docs with real life examples (not shallow queries) or point me to examples on how to achieve that?
Any help will be much appreciated.