GraphQL | Rest |
(1)GraphQL is server-side technology or its a application layer server side technology which is used for execute query on data. | (1)On the Other hand Rest is software architectural style whihc define some set of rules to create Web Services. |
(2)We can organize GraphQL in terms of schema. | (2)REST can be arranged in term of endpoints. |
(3)GrpahQL is faster then Rest when we say about the development | (3)REST is slower then GraphQL when we say about speed |
(4)GraphQL uses metadata to do query validation | (4)REST donot have machine readable metadata cacheable. |
(5)Message format in GraphQL muation should be string | (5)And message format for REST muation cen be anything. |
(6)It is strongly typed | (6)It is weakly typed |
(7)Partners of GraphQL require API customization. | (7)It offers flexible public API that can easily enable new applications. |
(8)It is difficult to learn curve in GraphQL is difficult. | (8)learning curve in REST is moderate |