Can GraphQL be used for a microservices architecture?
a) No, GraphQL is not compatible with microservices
b) Yes, it can act as a gateway for multiple microservices
c) Only for authentication services
d) Only for small applications
Answer:
b) Yes, it can act as a gateway for multiple microservices
Explanation:
GraphQL can be used as a gateway to aggregate data from multiple microservices, providing a single entry point for client requests.