nPlan interview question

Why would you use REST over GraphQL or vice versa?