Pretty much as BugDB v1. There is only a tiny difference on mutate the data.
Users no longer have their bugs.
query{
allUsers {
edges {
node {
id
username
}
}
}
}
There is only one bug in array. And the one shows NOT PRIVATE status.
query{
allBugs {
id
reporter {
id
username
}
reporterId
text
private
}
}
And the bug id can be decoded
base64decode(QnVnczox) = Bugs:1
Try modify Bugs:2
mutation{
modifyBug(id:2, private:false) {
ok
}
}
Go check back allBugs again.
query{
allBugs {
id
reporter {
id
username
}
reporterId
text
private
}
}
Get the FLAG