If you ever wondered on how to use Keto with NestJS I just wrote an article about that: https://dev.to/nidomiro/using-ory-keto-to-secure-nestjs-backends-5gbg
The best part is, that the lib I wrote, parses RelationTuples in string representation to be usable with the Ory Keto SDK.
It makes working with RelationTuples much more readable.