<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to make data connection REST GET GraphQL ? in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/1685082#M5022</link>
    <description>&lt;P&gt;Hi to every one,&lt;/P&gt;&lt;P&gt;I need to create one Data Connection for to read some fields in GraphQL&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;query{&lt;BR /&gt;bookings {&lt;BR /&gt;id&lt;BR /&gt;uuid&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;the URL it's something like this :&lt;/P&gt;&lt;P&gt;"&lt;A href="https://gm-cms-staging.xyyyy.com/graphql?token=a5OMOWlzCB9zM_os0oS8" target="_blank" rel="noopener"&gt;https://gm-cms-staging.xyyyy.com/graphql?token=a5OMOWlzCB9zM_os0oS8&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;Someone has used REST GET JSON with GraphQL ?&lt;/P&gt;&lt;P&gt;Thanks so much for your help !!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 20:09:52 GMT</pubDate>
    <dc:creator>steeramp</dc:creator>
    <dc:date>2021-12-21T20:09:52Z</dc:date>
    <item>
      <title>How to make data connection REST GET GraphQL ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/1685082#M5022</link>
      <description>&lt;P&gt;Hi to every one,&lt;/P&gt;&lt;P&gt;I need to create one Data Connection for to read some fields in GraphQL&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;query{&lt;BR /&gt;bookings {&lt;BR /&gt;id&lt;BR /&gt;uuid&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;the URL it's something like this :&lt;/P&gt;&lt;P&gt;"&lt;A href="https://gm-cms-staging.xyyyy.com/graphql?token=a5OMOWlzCB9zM_os0oS8" target="_blank" rel="noopener"&gt;https://gm-cms-staging.xyyyy.com/graphql?token=a5OMOWlzCB9zM_os0oS8&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;Someone has used REST GET JSON with GraphQL ?&lt;/P&gt;&lt;P&gt;Thanks so much for your help !!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 20:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/1685082#M5022</guid>
      <dc:creator>steeramp</dc:creator>
      <dc:date>2021-12-21T20:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to make data connection REST GET GraphQL ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/1783822#M5783</link>
      <description>&lt;P&gt;Hi Steeramp,&lt;/P&gt;&lt;P&gt;See at&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Brasil/GraphQL-Como-usar-no-Qlik-Sense-a-Evolu%C3%A7%C3%A3o-das-APIs-Web/td-p/1599581" target="_blank"&gt;https://community.qlik.com/t5/Brasil/GraphQL-Como-usar-no-Qlik-Sense-a-Evolu%C3%A7%C3%A3o-das-APIs-Web/td-p/1599581&lt;/A&gt;&lt;/P&gt;&lt;P&gt;PS: Text written in Portuguese&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 13:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/1783822#M5783</guid>
      <dc:creator>jptneumann</dc:creator>
      <dc:date>2021-02-18T13:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to make data connection REST GET GraphQL ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2025879#M11882</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47183"&gt;@steeramp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Hope the connection has worked for you. Am trying to make the query dynamic. Have been able to connect with the Rest API and query a table based on the response query in the data connection but it doesn't work when i try and use with connection to query a different table. Any guidance will be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 16:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2025879#M11882</guid>
      <dc:creator>salonibhatia</dc:creator>
      <dc:date>2023-01-15T16:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to make data connection REST GET GraphQL ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2025905#M11884</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2595"&gt;@salonibhatia&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Yes, it is possible. Just make your SQL Select using &lt;STRONG&gt;WITH CONNECTION&lt;/STRONG&gt; . For example:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;let vRequestBody = '{ "query": "{ organizations { id name created_at role} }"}';
let vRequestBody = replace(vRequestBody,'"', chr(34)&amp;amp;chr(34));

LIB CONNECT TO 'mysourceAPI';

RestConnectorMasterTable:
SQL SELECT
"__KEY_data",
(SELECT
"id",
"name",
"created_at",
"role",
"__FK_organizations"
FROM "organizations" FK "__FK_organizations")
FROM JSON (wrap off) "data" PK "__KEY_data"
WITH CONNECTION(Url "https://api.mysource.com/graphql", BODY "$(vRequestBody)");&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;If you need connect to a sequence of tables, you can loop a list of tables and make a connection for each table.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jean Paul&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 00:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2025905#M11884</guid>
      <dc:creator>jptneumann</dc:creator>
      <dc:date>2023-01-16T00:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to make data connection REST GET GraphQL ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2025914#M11885</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41445"&gt;@jptneumann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The columns in each table are different. Will the query have to be written every time to get the columns of that particular table? Am sorry for a lot of questions but little confused since if you change the query from organizations to a different table say departments and departments table has different columns, then how do you handle that part?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 01:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2025914#M11885</guid>
      <dc:creator>salonibhatia</dc:creator>
      <dc:date>2023-01-16T01:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make data connection REST GET GraphQL ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2026191#M11891</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41445"&gt;@jptneumann&lt;/a&gt;&amp;nbsp;, found a solution to add columns using a variable in select query as below&lt;/P&gt;
&lt;P&gt;Let vColumns = 'a","b","c';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;My approach would be to fetch columns somehow automatically in the variable based on table name(still have to work on it); have researched and * doesn't work.&lt;/P&gt;
&lt;P&gt;Please do share if there is any better approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Saloni&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 14:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2026191#M11891</guid>
      <dc:creator>salonibhatia</dc:creator>
      <dc:date>2023-01-16T14:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to make data connection REST GET GraphQL ?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2026307#M11892</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2595"&gt;@salonibhatia&lt;/a&gt;&amp;nbsp;, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;it is a good option to use variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See in the example that the request uses the &lt;STRONG&gt;vRequestBody&lt;/STRONG&gt; variable to build the query and it can be changed whenever you need to change the query. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To select the fields according to the table name, I suggest using the combination of Pick and Match functions. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ex: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Pick(Match(vTable, 'Table1','Table2','Table3'),'Field1, Field2', 'Field3,Field4','Field5,Field6')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; I hope I helped you, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jean Paul&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 18:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-make-data-connection-REST-GET-GraphQL/m-p/2026307#M11892</guid>
      <dc:creator>jptneumann</dc:creator>
      <dc:date>2023-01-16T18:03:19Z</dc:date>
    </item>
  </channel>
</rss>

