{"id":1412,"date":"2021-02-12T10:42:01","date_gmt":"2021-02-12T05:12:01","guid":{"rendered":"https:\/\/india.wordcamp.org\/2021\/?post_type=wcb_session&#038;p=1412"},"modified":"2021-02-12T10:42:01","modified_gmt":"2021-02-12T05:12:01","slug":"intro-to-the-graphql-api-for-wordpress","status":"publish","type":"wcb_session","link":"https:\/\/india.wordcamp.org\/2021\/session\/intro-to-the-graphql-api-for-wordpress\/","title":{"rendered":"Intro to the GraphQL API for WordPress"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Presentation of the new GraphQL API for WordPress plugin, to use the increasingly popular GraphQL API to fetch data from the WordPress site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The plugin is open source. Repo: <a href=\"https:\/\/github.com\/GraphQLAPI\/graphql-api-for-wp\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/GraphQLAPI\/graphql-api-for-wp<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We will first explore the current scene of APIs in WordPress:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>What is an API<\/li><li>What are the current solutions for WordPress: WP REST API and WPGraphQL<\/li><li>Their characteristics<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Then I will explain the characteristics of this new plugin GraphQL API for WordPress, and do a demo of it. The demo involves using the WordPress admin, there won&#8217;t be any code at all, so it&#8217;s suitable for beginners too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Slides: <a href=\"https:\/\/slides.com\/leoloso\/graphql-api-for-wp\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/slides.com\/leoloso\/graphql-api-for-wp<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Takeaways:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Attendees will learn about the different API solutions in WordPress, and about the GraphQL API plugin in particular<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Why am I qualified to give this talk:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because I&#8217;m the author of the plugin<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Presentation of the new GraphQL API for WordPress plugin, to use the increasingly popular GraphQL API to fetch data from the WordPress site. The plugin is open source. Repo: https:\/\/github.com\/GraphQLAPI\/graphql-api-for-wp. We will first explore the current scene of APIs in WordPress: What is an API What are the current solutions for WordPress: WP REST API &hellip; <a href=\"https:\/\/india.wordcamp.org\/2021\/session\/intro-to-the-graphql-api-for-wordpress\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Intro to the GraphQL API for WordPress&#8221;<\/span><\/a><\/p>\n","protected":false},"author":9992854,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1613302200,"_wcpt_session_duration":1800,"_wcpt_session_type":"session","_wcpt_session_slides":"https:\/\/slides.com\/leoloso\/graphql-api-for-wp","_wcpt_session_video":"","_wcpt_speaker_id":[1281],"footnotes":""},"session_track":[60],"session_category":[50],"class_list":["post-1412","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-track-2","wcb_session_category-talks"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pc7p5S-mM","session_date_time":{"date":"February 14, 2021","time":"5:00 pm"},"session_speakers":[{"id":"1281","slug":"leonardo-losoviz","name":"Leonardo Losoviz","link":"https:\/\/india.wordcamp.org\/2021\/speaker\/leonardo-losoviz\/"}],"session_cats_rendered":"Talks","_links":{"self":[{"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wp\/v2\/sessions\/1412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":2,"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wp\/v2\/sessions\/1412\/revisions"}],"predecessor-version":[{"id":1414,"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wp\/v2\/sessions\/1412\/revisions\/1414"}],"speakers":[{"embeddable":true,"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wp\/v2\/speakers\/1281"}],"author":[{"embeddable":true,"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wporg\/v1\/users\/leoloso"}],"wp:attachment":[{"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wp\/v2\/media?parent=1412"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wp\/v2\/session_track?post=1412"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/india.wordcamp.org\/2021\/wp-json\/wp\/v2\/session_category?post=1412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}