<?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 Re: Fabric GraphQl - How to create multiple record under single mutation. in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392096#M6846</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sakshi_Khojare_0-1738573104335.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1233719iC1FBCACFC487BF53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sakshi_Khojare_0-1738573104335.png" alt="Sakshi_Khojare_0-1738573104335.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;can you help me in this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 08:58:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-03T08:58:53Z</dc:date>
    <item>
      <title>Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4391700#M6828</link>
      <description>&lt;P&gt;I am working on GraphQl In fabric. I am having a table which conatins 5 records. I want to create more twomore records in table. When I am tring below query getting some error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sakshi_Khojare_0-1738559854504.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1233608i61ABA0DF84622463/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sakshi_Khojare_0-1738559854504.png" alt="Sakshi_Khojare_0-1738559854504.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For ex - In sql&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;INSERT INTO Student (ROLL_NO, NAME, ADDRESS, PHONE, AGE) VALUES&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(1, 'Ram', 'Delhi', 'XXXXXXXXXX', 18),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(2, 'Ramesh', 'Gurgaon', 'XXXXXXXXXX', 18),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How can we achive this in Graph QL ?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 05:19:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4391700#M6828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-03T05:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392016#M6841</link>
      <description>&lt;P&gt;hello&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are two things which I want to emphasise&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Primary key constraints (even `NOT ENFORCED`) are required for mutations, but these only enable single-row operations.&lt;BR /&gt;• Bulk operations aren’t listed as supported in Microsoft’s GraphQL API FAQ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this instead&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mutation {&lt;BR /&gt;createStudent1: createStudent(item: {ROLL_NO: 1, NAME: "Ram", ...}) { result }&lt;BR /&gt;createStudent2: createStudent(item: {ROLL_NO: 2, NAME: "Ramesh", ...}) { result }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or you can explore stored proc approach for bulk inserts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE PROCEDURE BulkBatchInsert&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt;BULK INSERT StagingStudents FROM 'data.csv' WITH (BATCHSIZE=100000);&lt;BR /&gt;INSERT INTO Students SELECT * FROM StagingStudents;&lt;BR /&gt;END;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please give it a try and let us know&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 08:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392016#M6841</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-03T08:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392033#M6842</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;,&lt;BR /&gt;Thanks for your quick respone.&lt;BR /&gt;I tried the above query but still unable to solve my issue. Below is the snapshot attched. Can you plz help me with this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sakshi_Khojare_0-1738571291204.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1233701i5C6CA39D840C1A05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sakshi_Khojare_0-1738571291204.png" alt="Sakshi_Khojare_0-1738571291204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 08:28:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392033#M6842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-03T08:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392048#M6843</link>
      <description>&lt;P&gt;You might have to change the syntax like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mutation {&lt;BR /&gt;createempinfo1: createempinfo(item: {Id: 30, Name: "Rohan", Address: "Amravati"}) {&lt;BR /&gt;result&lt;BR /&gt;}&lt;BR /&gt;createempinfo2: createempinfo(item: {Id: 31, Name: "Raj", Address: "Nagpur"}) {&lt;BR /&gt;result&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 08:36:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392048#M6843</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-03T08:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392096#M6846</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sakshi_Khojare_0-1738573104335.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1233719iC1FBCACFC487BF53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sakshi_Khojare_0-1738573104335.png" alt="Sakshi_Khojare_0-1738573104335.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;can you help me in this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 08:58:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392096#M6846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-03T08:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392123#M6848</link>
      <description>&lt;P&gt;There can be multiple reasons&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Ensure pk is still valid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALTER TABLE YourTable ADD CONSTRAINT PK_YourTable PRIMARY KEY NONCLUSTERED (Id) NOT ENFORCED;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mutation {&lt;BR /&gt;createempinfo1: createempinfo(item: {Id: 30, Name: "Rohan", Address: "Amravati"}) {&lt;BR /&gt;Id&lt;BR /&gt;Name&lt;BR /&gt;Address&lt;BR /&gt;}&lt;BR /&gt;createempinfo2: createempinfo(item: {Id: 31, Name: "Raj", Address: "Nagpur"}) {&lt;BR /&gt;Id&lt;BR /&gt;Name&lt;BR /&gt;Address&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:12:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392123#M6848</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-03T09:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392184#M6850</link>
      <description>&lt;P&gt;Try to change the keys as well&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:32:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392184#M6850</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-03T09:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392189#M6851</link>
      <description>&lt;P&gt;Unable to the first query which you had shared.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sakshi_Khojare_0-1738575337192.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1233740i5A564C74F3BDDBA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sakshi_Khojare_0-1738575337192.png" alt="Sakshi_Khojare_0-1738575337192.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:35:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392189#M6851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-03T09:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392195#M6852</link>
      <description>&lt;P&gt;Try to run it in warehouse&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:38:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392195#M6852</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-03T09:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392202#M6853</link>
      <description>&lt;P&gt;We had ID column as PK already.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:42:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4392202#M6853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-03T09:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric GraphQl - How to create multiple record under single mutation.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4394550#M6924</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have created a new WH called Graphql_test and created one table&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;MyTable and&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALTER&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt;&lt;SPAN&gt; MyTable&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ADD&lt;/SPAN&gt; &lt;SPAN&gt;CONSTRAINT&lt;/SPAN&gt;&lt;SPAN&gt; PK_MyTable &lt;/SPAN&gt;&lt;SPAN&gt;PRIMARY&lt;/SPAN&gt; &lt;SPAN&gt;KEY&lt;/SPAN&gt; &lt;SPAN&gt;NONCLUSTERED&lt;/SPAN&gt;&lt;SPAN&gt; (ID) &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt; &lt;SPAN&gt;ENFORCED&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nilendraFabric_0-1738679482972.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234303i50666929776E066A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nilendraFabric_0-1738679482972.png" alt="nilendraFabric_0-1738679482972.png" /&gt;&lt;/span&gt;&lt;BR /&gt;It was empty table .&lt;BR /&gt;&lt;BR /&gt;I added it to graphql api&amp;nbsp;&lt;BR /&gt;and use muttation to add two records, it worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nilendraFabric_1-1738679588028.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234306iD4C0A50124033E52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nilendraFabric_1-1738679588028.png" alt="nilendraFabric_1-1738679588028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Please see if this is helpful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 14:33:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-GraphQl-How-to-create-multiple-record-under-single/m-p/4394550#M6924</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-02-04T14:33:48Z</dc:date>
    </item>
  </channel>
</rss>

