How to validate in Strapi (typescript) before creating one content that combined key is unique?

I solved the issue with the result I wanted.

I shared the answer to my stack question above:

I do only hope that this solution will work also on newer strapi versions :wink: and the typescript support of strapi improves for the backend development as I mentioned in stack.