Which of the following is used for real-time communication in GraphQL?
a) Queries
b) Mutations
c) Subscriptions
d) Polling
Answer:
c) Subscriptions
Explanation:
Subscriptions in GraphQL are used for real-time updates, allowing clients to receive data whenever certain events happen on the server.