when it comes to frontend-backend communication, there are few options: rest openapi graphql. at the first glance, graphql seems like overkill that slowing down the whole team. but as the...
graphql在前后端通信中虽然看似复杂,但随着项目的扩展,能有效减少因小改动引发的错误。使用cypress或playwright进行测试时,graphql的模式一致性能够及时捕捉api合同的变化,从而使复杂应用更易于维护。