GraphQL ã®ã¡ãªããã享åããã«ããã£ã¦ãããã¤ãã®å´é¢ãé©ç¨ããããé ã«æ®µéçã«èãããã¨ãã§ããã¨æã£ãã®ã§æ¸ãåºãã¦ã¿ãã ã¬ãã« 1: åã¨ããã¥ã¡ã³ãã®ãã REST API GraphQL ãå©ç¨ããã¨æä½ã§ãåæã«ãã®ç¶æ
ã«ãªãã ããã§ã¯ãREST API ããã®ç§»è¡ãéè¦ãã1ã¤ã®ã¯ã¨ãªã§å¿
è¦ãªãã¼ã¿ããã¹ã¦åããã¨ã«ãã ããããREST API ãå©ãã®ã¨åãåä½ã§ GraphQL API ãå©ãã ä¾ãã°ãä»ã¾ã§ /users ãå©ãã¦ããã®ã§ããã°ãããã¨åãå½¢ã§è¿ã£ã¦ããããã« /graphql ã« query { users { id, name, etc } } ã¨ãããã©ã¡ã¼ã¿ã§åãã¿ã¤ãã³ã°ã§æããã ããã§ããã°ãåçã® REST API ã¨ãµã¼ãã®è² è·ãåãã§[1]ãã¯ã©ã¤ã¢ã³ãã®å®è£
å¤æ´ãæä½éã«æãã¤ã¤ãåã¨ããã¥ã¡ã³ããå¾ãããã Grap
{{#tags}}- {{label}}
{{/tags}}