HeyJobs interview question

When should you use GraphQL over REST