Can GraphQL be used alongside REST APIs?

Can GraphQL be used alongside REST APIs?

a) No, they are mutually exclusive
b) Yes, GraphQL can be used with REST APIs
c) Only in certain cases
d) GraphQL must replace REST APIs

Answer:

b) Yes, GraphQL can be used with REST APIs

Explanation:

GraphQL can work alongside REST APIs, and many applications use both technologies during transitions or to serve different types of requests.

Reference:

GraphQL Quiz – MCQ – Multiple Choice Questions

Scroll to Top