
What is GraphQL
This article was originally published on bmf-tech.com . What is GraphQL Developed by Facebook A query language for APIs User-friendly because the data format of API requests and responses are similar REST is an architecture (design), while GraphQL is a language (DSL) Comparison of REST API and GraphQL REST API Format Send requests to endpoints using HTTP verbs curl https://api.bmf-tech.com/v1/configs [ { "id" : 1 , "name" : "title" , "alias_name" : "Title" , "value" : "bmf-tech" , "created_at" : "2017-09-25 23:08:23" , "value" : "bmf-tech" , "deleted_at" : null } ] GraphQL API Format Send queries to a single endpoint curl https://api.bmf-tech.com/api configs { id , name , alias_name value , created_at , updated_at , deleted_at } [ { "id" : 1 , "name" : "title" , "alias_name" : "Title" , "value" : "bmf-tech" , "created_at" : "2017-09-25 23:08:23" , "value" : "bmf-tech" , "deleted_at" : null } ] REST API GraphQL Endpoints Multiple Single HTTP Verbs Dependent Independent Type System None
Continue reading on Dev.to
Opens in a new tab


