How to use Union and Interface types in Swift Vapor framework?

Recently I wanted to use GraphQL in my project. Now I'm trying to figure out how to use the Union and Interface types. Now I have two questions. How do I declare Union and Interface types in my schema? How I can use declared Union type in my resolver? If you can demonstrate the code examples I would be very grateful.


Ответы (0 шт):