Is there a way to integrate with my own datatabase?

Hello everyone! I am a web developer and I want to integrate strapi with my own database for compatibility reasons. I assume I can do it by redirecting graphql queries to my database. I use a graph database (dgraph) because I need one and it supports graphql out of the box, which means I can redirect graphql mutation to the dgraph and have it there.
Thanks a lot in advance.