<?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 Extracting the data incrementally in graphql query from shopify in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extracting-the-data-incrementally-in-graphql-query-from-shopify/m-p/2343925#M111633</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to incrementally pull the data from shopify source using graphql query. I am able to pull a small number of records through the graphql query which i am passing in talend job. I have a field "updated_At" in my source entity say order. I want to ensure that in my next job run, i pull the data incrementally i.e from the last saved value of updated_at. Can you help me with the design ? how should i handle this scenario?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:49:03 GMT</pubDate>
    <dc:creator>sushantk19</dc:creator>
    <dc:date>2024-11-15T21:49:03Z</dc:date>
    <item>
      <title>Extracting the data incrementally in graphql query from shopify</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-the-data-incrementally-in-graphql-query-from-shopify/m-p/2343925#M111633</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to incrementally pull the data from shopify source using graphql query. I am able to pull a small number of records through the graphql query which i am passing in talend job. I have a field "updated_At" in my source entity say order. I want to ensure that in my next job run, i pull the data incrementally i.e from the last saved value of updated_at. Can you help me with the design ? how should i handle this scenario?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-the-data-incrementally-in-graphql-query-from-shopify/m-p/2343925#M111633</guid>
      <dc:creator>sushantk19</dc:creator>
      <dc:date>2024-11-15T21:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the data incrementally in graphql query from shopify</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-the-data-incrementally-in-graphql-query-from-shopify/m-p/2343926#M111634</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To incrementally pull data from a Shopify source using a GraphQL query, you can follow these steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Determine the initial starting point: In your first job run, retrieve the data using your GraphQL query without any constraints on the "updated_at" field. This will give you the initial set of data to work with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Identify the maximum "updated_at" value from the initial dataset: Once you have retrieved the initial data, identify the maximum value of the "updated_at" field. This will be used as the starting point for the next job run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Store the maximum "updated_at" value: Save the maximum "updated_at" value in a persistent storage, such as a database or a file. This will allow you to access it in subsequent job runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add a constraint to the GraphQL query: In your next job run, modify your GraphQL query to include a constraint on the "updated_at" field. Use the stored maximum "updated_at" value as the constraint to only fetch data that has been updated after that point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Retrieve the incremental data: Execute the modified GraphQL query to retrieve the data that has been updated since the last run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Process and merge the data: Once you have the incremental data, you can process it as needed and merge it with the previously retrieved data. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update the maximum "updated_at" value: Identify the new maximum "updated_at" value from the combined dataset of the previous run and the incremental data. Update the stored maximum "updated_at" value to this new value, so it can be used in the subsequent job run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Repeat the process: Repeat steps 4-7 in each subsequent job run to incrementally pull the updated data from the Shopify source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By following this approach, you can ensure that only the data updated since the last run is fetched, allowing you to perform incremental data extraction from Shopify using a GraphQL query. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 09:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-the-data-incrementally-in-graphql-query-from-shopify/m-p/2343926#M111634</guid>
      <dc:creator>Jamesserpa</dc:creator>
      <dc:date>2023-05-11T09:25:47Z</dc:date>
    </item>
  </channel>
</rss>

