Thank you for the above blog. It was really helpful.
Updated my schema, what do you think about it now (made it DQL)
var Schema = `
type Tag {
resourceIds [Resource]
organizationId string
parentId string
key string
value string
}
type Resource {
name string
tagIds [Tag]
}
name: string .
key: string @index(term) .
value: string .
resourceIds: [uid] @count @reverse .
tagIds: [uid] @count @reverse .
organizationId: string @index(hash) .
parentId: string @index(hash) .
`
Thank you again for your time and help.