GraphQL 란
REST API 는 URI에 모든 내용을 기술해야하므로 요청 등에 있어서 충분한 공간이 나오지 않음.
GraphQL은 커스터마이징을 상세히 할 수 있다.
{
class(class_idx:1){
class_idx,
room,
teahcher,
students{
student_name,
subjects{
subject_name,
teacher
}}}}
모든요청은 post로 한다 (REST API는 GET으로 함)
post안에서 mutation 으로 기능을 분기시킴
mutation{
update....
}

댓글
댓글 쓰기