<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pasindu Jayasundara on Medium]]></title>
        <description><![CDATA[Stories by Pasindu Jayasundara on Medium]]></description>
        <link>https://medium.com/@pasindu-jayasundara?source=rss-78bc06b16999------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HfJBgWdMSLbjBtge6v7n9Q.jpeg</url>
            <title>Stories by Pasindu Jayasundara on Medium</title>
            <link>https://medium.com/@pasindu-jayasundara?source=rss-78bc06b16999------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:32:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pasindu-jayasundara/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[GraphQL with Supabase: Direct vs Separate Backend]]></title>
            <link>https://pasindu-jayasundara.medium.com/graphql-with-supabase-direct-vs-separate-backend-4a1377d31ef7?source=rss-78bc06b16999------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a1377d31ef7</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[graphql-with-supabase]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[supabase]]></category>
            <category><![CDATA[implementation]]></category>
            <dc:creator><![CDATA[Pasindu Jayasundara]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 06:46:11 GMT</pubDate>
            <atom:updated>2026-09-20T06:46:11.107Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WxeZq920QBbZK7b7yR7HyQ.png" /></figure><h3>Table of Contents</h3><ol><li><a href="#overview">Overview</a></li><li><a href="#architecture-diagrams">Architecture Diagrams</a></li><li><a href="#side-by-side-comparison-table">Side-by-Side Comparison Table</a></li><li><a href="#the-supabase-direct-approach-no-separate-backend">The Supabase-Direct Approach (No Separate Backend)</a></li><li><a href="#the-separate-backend-approach">The Separate Backend Approach</a></li><li><a href="#deep-dive-key-differences">Deep Dive: Key Differences</a></li><li><a href="#when-to-use-supabase-direct">When to Use Supabase-Direct</a></li><li><a href="#when-to-add-a-separate-backend">When to Add a Separate Backend</a></li><li><a href="#hybrid-approach">Hybrid Approach</a></li></ol><h3>Overview</h3><p>GraphQL is a query language — not a runtime. You can serve a GraphQL API from many places:</p><ul><li><strong>Supabase’s built-in </strong><strong>pg_graphql</strong> — auto-generated from your PostgreSQL schema, zero-config, hosted by Supabase</li><li><strong>A dedicated backend</strong> — a Node.js / Python / Go server running Apollo Server, Hasura, Pothos, etc., that you own and deploy</li></ul><p>Both approaches use the same Apollo Client on the frontend. The difference is entirely in <strong>where the GraphQL schema lives and who controls it</strong>.</p><p>The <strong>Vision Expert System</strong> uses the <strong>Supabase-direct</strong> approach:</p><pre>// src/client/supabase-grphql-apollo.client.js<br>const httpLink = new HttpLink({<br>  uri: `${SUPABASE_URL}/graphql/v1`,  // ← Supabase&#39;s built-in endpoint<br>});</pre><p>There is no Express server, no Apollo Server, no custom resolvers, and no separate deployment. The entire API surface comes from the database schema.</p><h3>Architecture Diagrams</h3><h3>Approach A: Supabase-Direct</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dSP788GbAAVG-b8bvW89Mw.jpeg" /></figure><h3>Approach B: Separate Backend</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ftehya5PSxb7Ydkd9IBb6g.jpeg" /></figure><h3>Side-by-Side Comparison Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*UWtuQPnfXQ2pUTPS8vbbcw.png" /></figure><h3>The Supabase-Direct Approach (No Separate Backend)</h3><h3>How it Works</h3><p>pg_graphql introspects your PostgreSQL schema on startup and generates a complete GraphQL API automatically. Every table becomes a queryable Collection type with full CRUD support.</p><h3>Apollo Client Config (from this project)</h3><pre>// Two required headers — no custom backend token scheme<br>const authLink = setContext((_, { headers }) =&gt; ({<br>  headers: {<br>    ...headers,<br>    apikey: SUPABASE_ANON_KEY,       // identifies the Supabase project<br>    Authorization: `Bearer ${accessToken}`, // Supabase JWT for RLS<br>    &quot;Content-Type&quot;: &quot;application/json&quot;,<br>  },<br>}));</pre><pre>const httpLink = new HttpLink({<br>  uri: `${SUPABASE_URL}/graphql/v1`, // Supabase endpoint — no server to host<br>});</pre><h3>Query Shape</h3><p>All collections follow the Relay-style connection pattern:</p><pre>query LoadStaff {<br>  staffCollection {        # ← always &quot;Collection&quot;<br>    edges {                # ← always &quot;edges&quot;<br>      node {               # ← always &quot;node&quot;<br>        id<br>        first_name<br>        role {             # ← relations via FK are auto-resolved<br>          role_name<br>        }<br>      }<br>    }<br>  }<br>}</pre><h3>Mutation Shape</h3><pre>mutation AddStaff($firstName: String!, $email: String!) {<br>  insertIntostaffCollection(         # ← prefix is always &quot;insertInto&quot;<br>    objects: { first_name: $firstName, email: $email }<br>  ) {<br>    records {<br>      id<br>    }<br>  }<br>}</pre><h3>Security — Enforced by the Database</h3><p>Row-Level Security (RLS) policies control who sees what. The backend IS the database:</p><pre>-- Only active staff can be read<br>CREATE POLICY &quot;select active staff&quot;<br>ON vision_expert.staff<br>FOR SELECT<br>USING (is_active = true AND auth_user_id = auth.uid());</pre><p>No code path can bypass this — even if the client sends a crafted GraphQL query, RLS filters it at the PostgreSQL level.</p><h3>Limitations of Supabase-Direct</h3><ol><li><strong>You can’t add custom fields</strong> that don’t exist in the DB without a database function or view</li><li><strong>Computed/virtual fields</strong> require PostgreSQL computed columns or views</li><li><strong>Cross-service queries</strong> (e.g., enrich data from a third-party REST API in a single GQL resolver) are not possible without Supabase Edge Functions</li><li><strong>Complex business rules</strong> (e.g., multi-step workflows with rollbacks) must be encoded in database functions or handled in the frontend</li><li><strong>Schema names</strong> must follow pg_graphql naming conventions — underscores are preserved, which can look unusual in GraphQL (head_officeCollection)</li></ol><h3>The Separate Backend Approach</h3><h3>How it Works</h3><p>You run your own server (e.g., Apollo Server on Node.js) that defines a custom GraphQL schema and resolvers. The resolvers call into Supabase (or any other data source) using the Supabase admin SDK, Prisma, or raw SQL.</p><h3>Apollo Client Config</h3><pre>// Separate backend — your own auth token, your own endpoint<br>const authLink = setContext((_, { headers }) =&gt; ({<br>  headers: {<br>    ...headers,<br>    Authorization: `Bearer ${yourCustomJwt}`,<br>    &quot;Content-Type&quot;: &quot;application/json&quot;,<br>  },<br>}));</pre><pre>const httpLink = new HttpLink({<br>  uri: &quot;https://api.yourapp.com/graphql&quot;,  // your server<br>});</pre><h3>Custom Schema Example</h3><pre># You define every type by hand<br>type Staff {<br>  id: ID!<br>  firstName: String!<br>  lastName: String!<br>  fullName: String!          # computed field — not in DB<br>  role: Role!<br>  branch: Branch!<br>  subordinates: [Staff!]!   # custom logic<br>}</pre><pre>type Query {<br>  staff(id: ID!): Staff<br>  staffByBranch(branchId: ID!): [Staff!]!<br>}</pre><pre>type Mutation {<br>  addStaff(input: AddStaffInput!): StaffPayload!<br>  deactivateStaff(id: ID!): Boolean!<br>}</pre><h3>Resolver Example</h3><pre>// server/resolvers/staffResolvers.js<br>const Query = {<br>  staffByBranch: async (_, { branchId }, { supabaseAdmin, currentUser }) =&gt; {<br>    // Business logic: only managers can list their own branch<br>    if (currentUser.role !== &quot;manager&quot; &amp;&amp; currentUser.branchId !== branchId) {<br>      throw new ForbiddenError(&quot;Access denied&quot;);<br>    }</pre><pre>    // Fetch from Supabase using admin SDK (bypasses RLS)<br>    const { data, error } = await supabaseAdmin<br>      .from(&quot;staff&quot;)<br>      .select(&quot;*, branch(*), role(*)&quot;)<br>      .eq(&quot;branch_id&quot;, branchId);</pre><pre>    return data;<br>  },<br>};</pre><pre>const Staff = {<br>  // Computed field not in DB<br>  fullName: (parent) =&gt; `${parent.first_name} ${parent.last_name}`,<br>};</pre><h3>Deep Dive: Key Differences</h3><h3>1. Authentication Flow</h3><p><strong>Supabase-Direct:</strong></p><pre>User logs in → supabase.auth.signInWithPassword()<br>             → Supabase returns JWT<br>             → JWT stored in session<br>             → Apollo authLink reads JWT from supabase.auth.getSession()<br>             → JWT sent in Authorization header with every GraphQL request<br>             → Supabase validates JWT and enforces RLS</pre><pre>// Token is read dynamically from the Supabase session<br>let accessToken = null;<br>supabase.auth.getSession().then(({ data: { session } }) =&gt; {<br>  accessToken = session?.access_token ?? null;<br>});<br>supabase.auth.onAuthStateChange((_event, session) =&gt; {<br>  accessToken = session?.access_token ?? null;<br>});</pre><p><strong>Separate Backend:</strong></p><pre>User logs in → POST /auth/login (your endpoint) or Supabase Auth<br>             → Your server returns a custom JWT<br>             → Frontend stores JWT<br>             → Apollo authLink reads JWT from localStorage / context<br>             → JWT sent to your server<br>             → Your server validates JWT in middleware<br>             → Resolver runs with the validated user context</pre><p>The key difference: <strong>Supabase-direct requires no token exchange</strong> — the Supabase JWT is both the auth token and the database access token. With a separate backend you have an extra hop, but full control over what the token contains and how long it lives.</p><h3>2. Apollo Client Setup</h3><p><strong>Supabase-Direct</strong> (from this project):</p><pre>// Two specific headers, one endpoint<br>const link = offlineMutationLink<br>  .concat(authLink)   // adds apikey + Bearer<br>  .concat(httpLink);  // → supabase.co/graphql/v1</pre><p><strong>Separate Backend:</strong></p><pre>// One standard auth header, your endpoint<br>const link = authLink    // adds your token<br>  .concat(httpLink);     // → api.yourapp.com/graphql</pre><p>Both use the same setContext + HttpLink pattern. The only differences are the endpoint URL and which headers are required.</p><h3>3. Writing Queries and Mutations</h3><p><strong>Supabase-Direct</strong> — schema is auto-generated, names are fixed:</p><pre># Table: staff → Query: staffCollection, Mutation: insertIntostaffCollection<br>query {<br>  staffCollection(filter: { is_active: { eq: true } }) {<br>    edges { node { id first_name } }<br>  }<br>}</pre><p><strong>Separate Backend</strong> — you define everything:</p><pre># You chose the name &quot;activeStaff&quot;<br>query {<br>  activeStaff {<br>    id<br>    fullName          # computed in resolver<br>    avatarUrl         # fetched from a CDN API in resolver<br>  }<br>}</pre><p>With a separate backend, you can <strong>flatten nested data</strong>, <strong>join across services</strong>, and <strong>compute derived fields</strong> in one GraphQL response. Supabase-direct returns exactly what is in the database.</p><h3>4. Business Logic Location</h3><p><strong>Supabase-Direct:</strong></p><pre>Business logic →  PostgreSQL functions, triggers, and RLS policies<br>                  OR handled in the React frontend (as in this project)</pre><p>Example in this project — duplicate check before inserting:</p><pre>// Frontend handles the business rule: check for dup NIC/email before inserting<br>const { data: dupData } = await checkDuplicate({ variables: { nic, email } });<br>const nicExists = dupData?.nicCheck?.edges?.length &gt; 0;<br>if (nicExists) {<br>  alert(&quot;A staff member with this NIC already exists.&quot;);<br>  return;<br>}<br>await addStaff({ variables: { ... } });</pre><p><strong>Separate Backend:</strong></p><pre>// Backend resolver handles the business rule<br>const addStaff = async (_, { input }, { db }) =&gt; {<br>  const existing = await db.staff.findFirst({<br>    where: { OR: [{ nic: input.nic }, { email: input.email }] }<br>  });<br>  if (existing) throw new UserInputError(&quot;NIC or email already exists&quot;);</pre><pre>  // Atomic transaction: create auth user + insert staff profile<br>  return await db.$transaction([<br>    supabaseAdmin.auth.admin.createUser({ email: input.email }),<br>    db.staff.create({ data: input }),<br>  ]);<br>};</pre><p>The backend approach centralizes rules that the frontend approach scatters. This matters for <strong>API consumers beyond just the frontend</strong> (e.g., mobile apps, third-party integrations).</p><h3>5. Security Model</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*CH0E-vybIBHdPNlOhqhMfQ.png" /></figure><p>Supabase-direct is <strong>harder to accidentally misconfigure</strong> for data exposure because the database enforces access rules. A separate backend can be more flexible but requires careful discipline in resolvers.</p><h3>6. Subscriptions / Realtime</h3><p><strong>Supabase-Direct:</strong></p><p>Supabase provides real-time through its own channel mechanism (not GraphQL subscriptions):</p><pre>// Supabase Realtime — separate from GraphQL<br>const channel = supabase<br>  .channel(&quot;staff-changes&quot;)<br>  .on(&quot;postgres_changes&quot;, { event: &quot;*&quot;, schema: &quot;vision_expert&quot;, table: &quot;staff&quot; },<br>    (payload) =&gt; { refetch(); }<br>  )<br>  .subscribe();</pre><p>This is separate from Apollo and requires a separate Supabase channel subscription. Apollo does not receive live pushes.</p><p><strong>Separate Backend:</strong></p><p>A custom backend can implement true <strong>GraphQL subscriptions</strong> over WebSocket:</p><pre>subscription {<br>  staffAdded {<br>    id<br>    first_name<br>    role { role_name }<br>  }<br>}</pre><pre>// Apollo Client with WebSocket link<br>import { GraphQLWsLink } from &quot;@apollo/client/link/subscriptions&quot;;<br>import { createClient } from &quot;graphql-ws&quot;;</pre><pre>const wsLink = new GraphQLWsLink(<br>  createClient({ url: &quot;wss://api.yourapp.com/graphql&quot; })<br>);</pre><h3>7. Offline Support</h3><p>Both approaches support offline mutations with Apollo Link chaining. The Vision Expert System implements it for the Supabase-direct approach using RxDB as the local queue store.</p><p>The patterns are <strong>identical</strong> in principle:</p><pre>Offline mutation → ApolloLink intercepts → stores in local DB → syncs on reconnect</pre><p>The difference is that token refresh on reconnect is simpler with a separate backend (you control the token lifecycle). With Supabase, you must ensure the Supabase JWT has not expired before re-syncing queued mutations.</p><h3>When to Use Supabase-Direct</h3><p>Choose this approach if:</p><ul><li>✅ Your app is <strong>CRUD-heavy</strong> with standard data access patterns</li><li>✅ You want to <strong>ship fast</strong> without maintaining a server</li><li>✅ Your team is small and backend expertise is limited</li><li>✅ Your data logic fits well in <strong>PostgreSQL functions and RLS</strong></li><li>✅ You are building a <strong>single frontend</strong> (one app, one schema consumer)</li><li>✅ You want <strong>zero hosting cost</strong> for the API layer</li><li>✅ Your queries are <strong>table-centric</strong> and don’t require cross-service joins</li></ul><p><strong>This is exactly the Vision Expert System’s choice</strong> — a multi-role internal tool where all data is in Supabase, RLS enforces access by role and branch, and the frontend is the only consumer.</p><h3>When to Add a Separate Backend</h3><p>Add a separate backend if:</p><ul><li>❌ You need <strong>computed / virtual fields</strong> that don’t exist in the DB</li><li>❌ You need to <strong>aggregate data from multiple services</strong> (e.g., Supabase + a payment gateway + a CRM) in one GraphQL response</li><li>❌ You have complex <strong>multi-step transactions</strong> that must be atomic across tables and services</li><li>❌ You are building a <strong>public API</strong> that external developers will consume</li><li>❌ You need <strong>GraphQL subscriptions</strong> (real-time push over WebSocket from the GQL layer)</li><li>❌ Your business rules are complex enough that putting them in SQL is impractical</li><li>❌ You are building a <strong>microservices architecture</strong> where GraphQL is a federation gateway</li><li>❌ You need custom <strong>rate limiting, request validation, or audit logging</strong> at the API level</li><li>❌ The Supabase column/table naming convention produces <strong>ugly schema names</strong> you cannot change</li></ul><h3>Hybrid Approach</h3><p>Many production apps use <strong>both</strong>:</p><ul><li>Supabase-direct GraphQL for standard data reads/writes</li><li>Supabase Edge Functions (serverless) for complex business logic that needs:</li><li>Admin SDK access (bypassing RLS safely)</li><li>Third-party API calls</li><li>Multi-step transactions</li></ul><pre>Frontend Apollo Client<br>    │<br>    ├── /graphql/v1  →  Supabase pg_graphql  (standard CRUD)<br>    │<br>    └── /functions/complex-operation  →  Supabase Edge Function (business logic)<br>                                          → calls Supabase admin SDK internally</pre><p>This gives you <strong>the speed and zero-maintenance of Supabase-direct</strong> for 90% of operations, with <strong>backend-level flexibility</strong> for the 10% that need it — without running a full server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a1377d31ef7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use GraphQL with Supabase]]></title>
            <link>https://pasindu-jayasundara.medium.com/how-to-use-graphql-with-supabase-a838682868b8?source=rss-78bc06b16999------2</link>
            <guid isPermaLink="false">https://medium.com/p/a838682868b8</guid>
            <category><![CDATA[apollo-client]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[supabase]]></category>
            <category><![CDATA[setup-supabase]]></category>
            <dc:creator><![CDATA[Pasindu Jayasundara]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 12:28:53 GMT</pubDate>
            <atom:updated>2026-08-31T12:29:41.829Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FiU5eLVytpRmOWwfEn9rnA.jpeg" /></figure><h3>Table of Contents</h3><ol><li><a href="#what-is-supabase-graphql">What is Supabase GraphQL?</a></li><li><a href="#how-the-architecture-works">How the Architecture Works</a></li><li><a href="#step-1--enable-graphql-in-supabase">Step 1 — Enable GraphQL in Supabase</a></li><li><a href="#step-2--install-dependencies">Step 2 — Install Dependencies</a></li><li><a href="#step-3--create-the-supabase-base-client">Step 3 — Create the Supabase Base Client</a></li><li><a href="#step-4--create-the-apollo--supabase-graphql-client">Step 4 — Create the Apollo + Supabase GraphQL Client</a></li><li><a href="#step-5--provide-the-apollo-client-to-react">Step 5 — Provide the Apollo Client to React</a></li><li><a href="#step-6--write-queries">Step 6 — Write Queries</a></li><li><a href="#step-7--write-mutations">Step 7 — Write Mutations</a></li><li><a href="#understanding-the-supabase-graphql-schema">Understanding the Supabase GraphQL Schema</a></li><li><a href="#authentication-and-row-level-security">Authentication and Row-Level Security</a></li><li><a href="#advanced-offline-support-with-apollo-link">Advanced: Offline Support with Apollo Link</a></li><li><a href="#summary-checklist">Summary Checklist</a></li></ol><h3>What is Supabase GraphQL?</h3><p>Supabase ships with <strong>pg_graphql</strong> — a PostgreSQL extension that auto-generates a fully-typed GraphQL API directly from your database schema. Every table you create immediately becomes a queryable and mutable GraphQL type. You get:</p><ul><li>Auto-generated queries (staffCollection, branchCollection, etc.)</li><li>Auto-generated mutations (insertIntostaffCollection, updatestaffCollection, etc.)</li><li>Filtering, ordering, pagination out of the box</li><li>Row-Level Security (RLS) enforced at the database level</li></ul><p>The GraphQL endpoint lives at:</p><pre>https://&lt;your-project-ref&gt;.supabase.co/graphql/v1</pre><p>No separate backend is needed.</p><h3>How the Architecture Works</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C2MoglLH5b2FuAzBDWPJOQ.jpeg" /></figure><h3>Step 1 — Enable GraphQL in Supabase</h3><p>GraphQL is enabled by default on new Supabase projects. Verify it in your project:</p><ol><li>Go to <strong>Supabase Dashboard → Database → Extensions</strong></li><li>Search for pg_graphql — ensure it is <strong>enabled</strong></li></ol><p>To inspect your auto-generated schema, go to <strong>API Docs</strong> in the dashboard, or visit the GraphiQL playground at:</p><pre>https://&lt;your-project-ref&gt;.supabase.co/graphql/v1</pre><blockquote><em>[!IMPORTANT] Your tables must be in the </em><em>public schema (or the schema you configure) for pg_graphql to pick them up.</em></blockquote><h3>Step 2 — Install Dependencies</h3><pre>npm install @apollo/client graphql @supabase/supabase-js</pre><p>PackagePurpose@apollo/clientGraphQL client — queries, mutations, cachinggraphqlGraphQL core library (peer dependency)@supabase/supabase-jsSupabase JS client — auth, realtime, storage</p><h3>Step 3 — Create the Supabase Base Client</h3><p>The standard Supabase JS client handles <strong>authentication only</strong> (sign in, sign out, session management). GraphQL calls go through Apollo Client.</p><pre>// src/client/supabase.js<br>import { createClient } from &quot;@supabase/supabase-js&quot;;</pre><pre>const SUPABASE_URL = import.meta.env.VITE_SUPABASE_URL;<br>const SUPABASE_ANON_KEY = import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY;</pre><pre>const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY, {<br>  db: {<br>    schema: &quot;vision_expert&quot;,  // custom schema — omit for &quot;public&quot;<br>  },<br>});</pre><pre>export default supabase;</pre><p><strong>Key point:</strong> createClient here is used only for auth. All data fetching uses Apollo Client below.</p><h3>Step 4 — Create the Apollo + Supabase GraphQL Client</h3><p>This is the heart of the integration. The Apollo Client is configured to:</p><ol><li>Point at Supabase’s GraphQL endpoint</li><li>Attach the apikey header (Supabase anon key) and a Bearer JWT token</li><li>Use nodeId for Apollo&#39;s normalized cache (Supabase returns nodeId on every object)</li></ol><pre>// src/client/supabase-graphql-apollo.client.js<br>import {<br>  ApolloClient,<br>  HttpLink,<br>  InMemoryCache,<br>  defaultDataIdFromObject,<br>} from &quot;@apollo/client&quot;;<br>import { setContext } from &quot;@apollo/client/link/context&quot;;<br>import supabase from &quot;./supabase&quot;;</pre><pre>const SUPABASE_URL = import.meta.env.VITE_SUPABASE_URL;<br>const SUPABASE_ANON_KEY = import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY;</pre><pre>// 1. Point to Supabase&#39;s built-in GraphQL endpoint<br>const httpLink = new HttpLink({<br>  uri: `${SUPABASE_URL}/graphql/v1`,<br>});</pre><pre>// 2. Track the current JWT access token reactively<br>let accessToken = null;</pre><pre>supabase.auth.getSession().then(({ data: { session } }) =&gt; {<br>  accessToken = session?.access_token ?? null;<br>});</pre><pre>supabase.auth.onAuthStateChange((_event, session) =&gt; {<br>  accessToken = session?.access_token ?? null;<br>});</pre><pre>// 3. Auth middleware: inject apikey + Bearer token on every request<br>const authLink = setContext((_, { headers }) =&gt; ({<br>  headers: {<br>    ...headers,<br>    apikey: SUPABASE_ANON_KEY,<br>    ...(accessToken &amp;&amp; { Authorization: `Bearer ${accessToken}` }),<br>    &quot;Content-Type&quot;: &quot;application/json&quot;,<br>    Accept: &quot;application/json&quot;,<br>  },<br>}));</pre><pre>// 4. Cache: use Supabase&#39;s nodeId as the cache key for normalization<br>const cache = new InMemoryCache({<br>  dataIdFromObject(responseObject) {<br>    if (&quot;nodeId&quot; in responseObject) {<br>      return `${responseObject.nodeId}`;<br>    }<br>    return defaultDataIdFromObject(responseObject);<br>  },<br>});</pre><pre>// 5. Compose the client<br>const apolloClient = new ApolloClient({<br>  link: authLink.concat(httpLink),<br>  cache,<br>});</pre><pre>export default apolloClient;</pre><h3>Why Two Headers?</h3><p>HeaderValuePurposeapikeySupabase anon keyIdentifies your Supabase projectAuthorizationBearer &lt;jwt&gt;Identifies the logged-in user (enables RLS)</p><p>Without the Authorization header, every request runs as an anonymous user. Without apikey, the request is rejected entirely.</p><h3>Why nodeId for Cache?</h3><p>Supabase’s pg_graphql adds a nodeId field to every object — it is a globally unique, base64-encoded identifier like &quot;WyJzdGFmZiIsMV0=&quot;. Using it as Apollo&#39;s cache key ensures that the same database row cached from different queries points to the same normalized object in memory, preventing stale data inconsistencies.</p><h3>Step 5 — Provide the Apollo Client to React</h3><p>Wrap your entire app with ApolloProvider so every component can use useQuery and useMutation:</p><pre>// src/main.jsx<br>import { createRoot } from &quot;react-dom/client&quot;;<br>import { ApolloProvider } from &quot;@apollo/client/react&quot;;<br>import apolloClient from &quot;./client/supabase-graphql-apollo.client.js&quot;;<br>import { AuthProvider } from &quot;./auth/AuthProvider.jsx&quot;;<br>import App from &quot;./routes/App.jsx&quot;;</pre><pre>createRoot(document.getElementById(&quot;root&quot;)).render(<br>  &lt;ApolloProvider client={apolloClient}&gt;<br>    &lt;AuthProvider&gt;<br>      &lt;App /&gt;<br>    &lt;/AuthProvider&gt;<br>  &lt;/ApolloProvider&gt;<br>);</pre><blockquote><em>[!NOTE] </em><em>AuthProvider sits inside </em><em>ApolloProvider so that auth-aware GraphQL queries (like fetching the staff profile on login) can use Apollo hooks.</em></blockquote><h3>Step 6 — Write Queries</h3><h3>Basic Query</h3><p>Supabase GraphQL wraps every table in a Collection type. The result is always paginated via edges → node.</p><pre>import { gql } from &quot;@apollo/client&quot;;<br>import { useQuery } from &quot;@apollo/client/react&quot;;</pre><pre>const LOAD_BRANCHES = gql`<br>  query LoadBranches {<br>    branchCollection {<br>      edges {<br>        node {<br>          id<br>          branch_name<br>        }<br>      }<br>    }<br>  }<br>`;</pre><pre>function BranchList() {<br>  const { data, loading, error } = useQuery(LOAD_BRANCHES);</pre><pre>  if (loading) return &lt;p&gt;Loading...&lt;/p&gt;;<br>  if (error) return &lt;p&gt;Error: {error.message}&lt;/p&gt;;</pre><pre>  return (<br>    &lt;ul&gt;<br>      {data.branchCollection.edges.map(({ node }) =&gt; (<br>        &lt;li key={node.id}&gt;{node.branch_name}&lt;/li&gt;<br>      ))}<br>    &lt;/ul&gt;<br>  );<br>}</pre><h3>Query with Filter and Variables</h3><pre>const GET_STAFF_PROFILE = gql`<br>  query GetStaffProfile($authUserId: UUID!) {<br>    staffCollection(filter: { auth_user_id: { eq: $authUserId } }) {<br>      edges {<br>        node {<br>          id<br>          first_name<br>          last_name<br>          auth_user_id<br>          branch {<br>            id<br>            branch_name<br>          }<br>          role {<br>            id<br>            role_name<br>          }<br>        }<br>      }<br>    }<br>  }<br>`;</pre><pre>// Usage<br>const { data } = await apolloClient.query({<br>  query: GET_STAFF_PROFILE,<br>  variables: { authUserId: session.user.id },<br>  fetchPolicy: &quot;cache-first&quot;,<br>});</pre><pre>const staffNode = data?.staffCollection?.edges?.[0]?.node;</pre><h3>Lazy Query (on demand)</h3><pre>const [loadStaff, { data: staffData }] = useLazyQuery(LOAD_STAFF);</pre><pre>// Trigger manually<br>useEffect(() =&gt; {<br>  loadStaff();<br>}, [loadStaff]);</pre><h3>Query with Ordering</h3><pre>const LOAD_MAIN_STOCK = gql`<br>  query LoadMainStock($branch_id: Int!) {<br>    stockCollection(<br>      filter: { branch_id: { eq: $branch_id } }<br>      orderBy: [{ created_at: DescNullsLast }]<br>    ) {<br>      edges {<br>        node {<br>          id<br>          available_quantity<br>          created_at<br>          product {<br>            id<br>            name<br>          }<br>        }<br>      }<br>    }<br>  }<br>`;</pre><h3>Step 7 — Write Mutations</h3><p>Supabase auto-generates three mutation types per table:</p><p>MutationPatternInsertinsertInto&lt;TableName&gt;CollectionUpdateupdate&lt;TableName&gt;CollectionDeletedeleteFrom&lt;TableName&gt;Collection</p><h3>Insert Mutation</h3><pre>const ADD_STAFF = gql`<br>  mutation AddStaff(<br>    $firstName: String!<br>    $lastName: String!<br>    $nic: String!<br>    $roleId: ID!<br>    $branchId: ID!<br>    $authUserId: ID!<br>    $email: String!<br>  ) {<br>    insertIntostaffCollection(<br>      objects: {<br>        first_name: $firstName<br>        last_name: $lastName<br>        nic: $nic<br>        role_id: $roleId<br>        branch_id: $branchId<br>        auth_user_id: $authUserId<br>        email: $email<br>      }<br>    ) {<br>      records {<br>        id<br>      }<br>    }<br>  }<br>`;</pre><pre>const [addStaff] = useMutation(ADD_STAFF);</pre><pre>// Call it<br>await addStaff({<br>  variables: {<br>    firstName: &quot;Pasindu&quot;,<br>    lastName: &quot;Silva&quot;,<br>    nic: &quot;200012345678&quot;,<br>    roleId: &quot;3&quot;,<br>    branchId: &quot;1&quot;,<br>    authUserId: authData.user.id,<br>    email: &quot;pasindu@example.com&quot;,<br>  },<br>});</pre><h3>Update Mutation</h3><pre>const UPDATE_STAFF = gql`<br>  mutation UpdateStaff(<br>    $id: ID!<br>    $firstName: String!<br>    $isActive: Boolean!<br>  ) {<br>    updatestaffCollection(<br>      filter: { id: { eq: $id } }<br>      set: {<br>        first_name: $firstName<br>        is_active: $isActive<br>      }<br>    ) {<br>      records {<br>        id<br>        first_name<br>        is_active<br>      }<br>    }<br>  }<br>`;</pre><h3>Using Both Supabase Auth and GraphQL in the Same Action</h3><p>For creating a user, the Vision Expert System combines Supabase Auth (to create the login) with a GraphQL mutation (to create the profile record):</p><pre>// Step 1: Create auth user via Supabase JS SDK<br>const { data: authData, error: authError } = await supabase.auth.signUp({<br>  email: newStaffData.email,<br>  password: Math.random().toString(36).slice(-8),<br>});</pre><pre>const authUserId = authData.user?.id;</pre><pre>// Step 2: Create staff profile via GraphQL mutation<br>await addStaff({<br>  variables: {<br>    firstName: newStaffData.firstName,<br>    authUserId,       // link the auth user<br>    email: newStaffData.email,<br>    // ...other fields<br>  },<br>});</pre><h3>Understanding the Supabase GraphQL Schema</h3><h3>Collection Naming</h3><p>Supabase pluralizes table names to create collection queries:</p><p>Table nameGraphQL queryGraphQL mutationstaffstaffCollectioninsertIntostaffCollectionbranchbranchCollectionupdatebranchCollectionhead_officehead_officeCollectioninsertIntohead_officeCollection</p><h3>Filter Operators</h3><pre>filter: { field: { eq: $value } }      # equals<br>filter: { field: { neq: $value } }     # not equals<br>filter: { field: { gt: $value } }      # greater than<br>filter: { field: { lt: $value } }      # less than<br>filter: { field: { in: [$a, $b] } }   # in list<br>filter: { field: { is: NULL } }        # null check</pre><h3>Relations</h3><p>If you have foreign keys, Supabase automatically generates nested resolvers. For example staff.branch works because there is a branch_id foreign key on staff:</p><pre>staffCollection {<br>  edges {<br>    node {<br>      id<br>      first_name<br>      branch {           # auto-generated from FK<br>        id<br>        branch_name<br>      }<br>      role {             # auto-generated from FK<br>        id<br>        role_name<br>      }<br>    }<br>  }<br>}</pre><h3>Authentication and Row-Level Security</h3><p>RLS policies on your Supabase tables are automatically enforced for every GraphQL request. The JWT in the Authorization header is decoded by Supabase and the auth.uid() function is available inside policies.</p><h3>Example RLS Policy</h3><pre>-- Allow staff to read only their own record<br>CREATE POLICY &quot;Staff can read own profile&quot;<br>ON vision_expert.staff<br>FOR SELECT<br>USING (auth_user_id = auth.uid());</pre><p>When a request arrives with a valid JWT, auth.uid() resolves to the user&#39;s ID. When no JWT is present, the request runs as anon (governed by separate anon RLS policies).</p><blockquote><em>[!CAUTION] Always enable RLS on your tables. Without it, every authenticated — and anonymous — request can access all rows.</em></blockquote><h3>Advanced: Offline Support with Apollo Link</h3><p>The Vision Expert System adds an <strong>offline mutation queuing layer</strong> on top of Apollo. When the device is offline, mutations are stored in RxDB (local IndexedDB) and replayed when connectivity is restored.</p><p>The custom ApolloLink intercepts mutations and redirects them to the offline queue:</p><pre>// Simplified from offlineMutationLink.js<br>import { ApolloLink, Observable } from &quot;@apollo/client&quot;;<br>import { enqueueOfflineMutation } from &quot;./offlineMutationDb&quot;;</pre><pre>export const offlineMutationLink = new ApolloLink((operation, forward) =&gt; {<br>  const operationType = operation.query.definitions<br>    .find((d) =&gt; d.kind === &quot;OperationDefinition&quot;)?.operation;</pre><pre>  // Only intercept mutations<br>  if (operationType !== &quot;mutation&quot;) {<br>    return forward(operation);<br>  }</pre><pre>  return new Observable((observer) =&gt; {<br>    if (!navigator.onLine) {<br>      // Queue instead of sending<br>      enqueueOfflineMutation({ ... }).then((queueId) =&gt; {<br>        observer.next({ data: null, extensions: { offlineQueued: true } });<br>        observer.complete();<br>      });<br>      return () =&gt; {};<br>    }</pre><pre>    // Online: pass through normally, queue on network error<br>    return forward(operation).subscribe({ ... });<br>  });<br>});</pre><p>The client is then composed as a <strong>link chain</strong>:</p><pre>const apolloClient = new ApolloClient({<br>  link: offlineMutationLink.concat(authLink).concat(httpLink),<br>  cache,<br>});</pre><p>The Apollo link pipeline processes each operation left-to-right:</p><pre>offlineMutationLink → authLink → httpLink → Supabase /graphql/v1</pre><h3>Apollo Cache Persistence</h3><p>For offline reads, the Apollo InMemoryCache is periodically persisted to IndexedDB via localforage. On app startup, the cache is restored before any queries run — pages appear populated even with no network:</p><pre>// On app startup<br>await restoreApolloCache(cache);   // load from IndexedDB<br>startApolloCachePersist(cache);    // poll every 3s and save changes</pre><h3>Summary Checklist</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*oLpyVBx5Nm5vb4B-t_8AmQ.png" /></figure><blockquote><em>[!TIP] Use the </em><strong><em>Supabase API Docs</em></strong><em> page in your project dashboard to auto-generate example queries for every table in your schema. It is an excellent reference when you start writing your first GraphQL queries.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a838682868b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Power Apps]]></title>
            <link>https://pasindu-jayasundara.medium.com/microsoft-power-apps-f37a2db6c2f6?source=rss-78bc06b16999------2</link>
            <guid isPermaLink="false">https://medium.com/p/f37a2db6c2f6</guid>
            <dc:creator><![CDATA[Pasindu Jayasundara]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 01:54:04 GMT</pubDate>
            <atom:updated>2026-02-02T01:54:04.016Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*G__OXq_QH1qCTA7a87LeNA.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7BNrd5e_E4E%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7BNrd5e_E4E&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7BNrd5e_E4E%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bac79440cc614ef3a32fd7e449a625c9/href">https://medium.com/media/bac79440cc614ef3a32fd7e449a625c9/href</a></iframe><ul><li><strong>Power App Training:</strong> <a href="https://pasindu-jayasundara.short.gy/power-apps-training">https://pasindu-jayasundara.short.gy/power-apps-training</a></li><li>𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗣𝗼𝘄𝗲𝗿 𝗣𝗹𝗮𝘁𝗳𝗼𝗿𝗺: <a href="https://lnkd.in/g7Pg4u7X">https://lnkd.in/g7Pg4u7X</a></li><li>𝗖𝗼𝗽𝗶𝗹𝗼𝘁 𝗦𝘁𝘂𝗱𝗶𝗼: <a href="https://lnkd.in/gHKfbHGi">https://lnkd.in/gHKfbHGi</a></li><li>𝗣𝗼𝘄𝗲𝗿 𝗔𝗽𝗽𝘀: <a href="https://lnkd.in/gH7XKyNG">https://lnkd.in/gH7XKyNG</a></li><li>𝗣𝗼𝘄𝗲𝗿 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗲: <a href="https://lnkd.in/gNZRUc8A">https://lnkd.in/gNZRUc8A</a></li><li>𝗣𝗼𝘄𝗲𝗿 𝗕𝗜: <a href="https://lnkd.in/gv5YknCS">https://lnkd.in/gv5YknCS</a></li><li>𝗣𝗼𝘄𝗲𝗿 𝗣𝗮𝗴𝗲: <a href="https://lnkd.in/gmD883kP">https://lnkd.in/gmD883kP</a></li></ul><p>In the current digital era, organizations are increasingly turning to no-code/low-code platforms to solve “tough challenges” and modernize outdated manual processes,. Microsoft Power Apps stands at the forefront of this movement, offering a versatile environment where users can build everything from simple vehicle inspection forms to complex inventory management systems,.</p><p><strong>A Familiar Foundation for Development</strong></p><p>One of the primary advantages of Power Apps is its accessibility. The platform is designed to build off familiar concepts, specifically formulas used in Excel workbooks, such as SUM and TEXT,. This allows individuals who are comfortable with spreadsheets to transition into app development without needing extensive traditional coding knowledge.</p><p><strong>Tailoring the Solution: Canvas vs. Model-Driven Apps</strong></p><p>When developing on the platform, users typically choose between two primary application types based on their specific business needs:</p><ul><li>Canvas Apps: These applications are ideal for those requiring a high degree of customization. Training modules for canvas apps provide guidance on how to create, manage, and distribute these tailored solutions to users,.</li><li>Model-Driven Applications: These are more structured apps that are fundamentally built upon Dataverse,.</li></ul><p><strong>The Role of Dataverse</strong></p><p>To build more sophisticated, data-heavy applications, it is essential to understand Dataverse. This component provides the technical structure for the platform, allowing developers to manage:</p><ul><li>Environments</li><li>Entities and Fields</li><li>Option sets</li></ul><p>By mastering these concepts, developers can create robust business solutions that handle intricate tasks like purchasing processes with greater efficiency,.</p><p><strong>Practical Learning Pathways</strong></p><p>Microsoft offers structured paths to help users move from theory to practice. Beyond the standard training modules on Microsoft Learn, the “App in a Day” instructor-led workshop is highly recommended,. This workshop provides hands-on experience, empowering users to build their own custom applications in a single session</p><ul><li><strong>Power App Training:</strong> <a href="https://pasindu-jayasundara.short.gy/power-apps-training">https://pasindu-jayasundara.short.gy/power-apps-training</a></li><li>𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗣𝗼𝘄𝗲𝗿 𝗣𝗹𝗮𝘁𝗳𝗼𝗿𝗺: <a href="https://lnkd.in/g7Pg4u7X">https://lnkd.in/g7Pg4u7X</a></li><li>𝗖𝗼𝗽𝗶𝗹𝗼𝘁 𝗦𝘁𝘂𝗱𝗶𝗼: <a href="https://lnkd.in/gHKfbHGi">https://lnkd.in/gHKfbHGi</a></li><li>𝗣𝗼𝘄𝗲𝗿 𝗔𝗽𝗽𝘀: <a href="https://lnkd.in/gH7XKyNG">https://lnkd.in/gH7XKyNG</a></li><li>𝗣𝗼𝘄𝗲𝗿 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗲: <a href="https://lnkd.in/gNZRUc8A">https://lnkd.in/gNZRUc8A</a></li><li>𝗣𝗼𝘄𝗲𝗿 𝗕𝗜: <a href="https://lnkd.in/gv5YknCS">https://lnkd.in/gv5YknCS</a></li><li>𝗣𝗼𝘄𝗲𝗿 𝗣𝗮𝗴𝗲: <a href="https://lnkd.in/gmD883kP">https://lnkd.in/gmD883kP</a></li></ul><p>𝗖𝗼𝗻𝗻𝗲𝗰𝘁 𝗪𝗶𝘁𝗵 𝗠𝗲:</p><ul><li>𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 𝗖𝗵𝗮𝗻𝗲𝗹: <a href="https://lnkd.in/gS63U43W">https://lnkd.in/gS63U43W</a></li><li>𝗬𝗼𝘂𝗧𝘂𝗯𝗲: <a href="https://lnkd.in/gH8UJq5H">https://lnkd.in/gH8UJq5H</a></li><li>𝗠𝗲𝗱𝗶𝘂𝗺: <a href="https://lnkd.in/gQZDxXSx">https://lnkd.in/gQZDxXSx</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f37a2db6c2f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Power Platform]]></title>
            <link>https://pasindu-jayasundara.medium.com/microsoft-power-platform-3e9c1917b980?source=rss-78bc06b16999------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e9c1917b980</guid>
            <dc:creator><![CDATA[Pasindu Jayasundara]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 00:39:55 GMT</pubDate>
            <atom:updated>2026-02-02T00:39:55.217Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>WhatsApp Chanel: <a href="https://pasindu-jayasundara.short.gy/level-up-channel">https://pasindu-jayasundara.short.gy/level-up-channel</a></li><li>Microsoft Power Platform: <a href="https://pasindu-jayasundara.short.gy/ms-power-platform">https://pasindu-jayasundara.short.gy/ms-power-platform</a></li><li>Copilot Studio: <a href="https://pasindu-jayasundara.short.gy/copilot-studio">https://pasindu-jayasundara.short.gy/copilot-studio</a></li><li>Power Apps: <a href="https://pasindu-jayasundara.short.gy/ms-powerapps">https://pasindu-jayasundara.short.gy/ms-powerapps</a></li><li>Power Automate: <a href="https://pasindu-jayasundara.short.gy/ms-power-automate">https://pasindu-jayasundara.short.gy/ms-power-automate</a></li><li>Power BI: <a href="https://pasindu-jayasundara.short.gy/ms-power-bi">https://pasindu-jayasundara.short.gy/ms-power-bi</a></li><li>Power Page: <a href="https://pasindu-jayasundara.short.gy/ms-power-pages">https://pasindu-jayasundara.short.gy/ms-power-pages</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUAtvd_tcUHc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUAtvd_tcUHc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUAtvd_tcUHc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c483e978ab4e861e55cf51b4791f1bb8/href">https://medium.com/media/c483e978ab4e861e55cf51b4791f1bb8/href</a></iframe><p>The modern business landscape requires agility, data-driven insights, and rapid digital transformation. According to the sources, the <a href="https://pasindu-jayasundara.short.gy/ms-power-platform">Microsoft Power Platform</a> provides a robust suite of tools designed to help organizations build custom solutions, automate processes, and harness the power of artificial intelligence (AI)</p><p>This article explores the core components, advanced capabilities, and governance frameworks that make the Power Platform a leader in low-code development.</p><p>The Core Pillars of Power Platform</p><p>The platform is built upon five primary products that cater to different aspects of business digital needs:</p><ul><li><a href="https://pasindu-jayasundara.short.gy/copilot-studio">Copilot Studio</a>: This tool allows users to build AI-driven agents quickly and easily to handle complex interactions.</li><li><a href="https://pasindu-jayasundara.short.gy/ms-powerapps">Power Apps:</a> Users can create custom applications tailored to specific business needs without requiring extensive traditional coding.</li><li><a href="https://pasindu-jayasundara.short.gy/ms-power-automate">Power Automate:</a> This service focuses on automating workflows to boost productivity and streamline repetitive tasks.</li><li><a href="https://pasindu-jayasundara.short.gy/ms-power-bi">Power BI:</a> A powerful tool for analysing data, providing the insights necessary for informed decision-making.</li><li><a href="https://pasindu-jayasundara.short.gy/ms-power-pages">Power Pages:</a> Designed for the rapid creation, configuration, and publishing of modern, professional websites.</li></ul><p>Advanced Capabilities and Integration</p><p>Beyond its primary apps, the sources highlight several foundational technologies that enhance the platform’s functionality:</p><ul><li>AI and Generative AI: Through AI Builder and integrated Copilot capabilities, businesses can boost productivity and enhance their processes with generative AI.</li><li>Dataverse: This powerful data service allows for the rapid construction of enterprise-grade apps using a secure and scalable data structure.</li><li>Connectors: These allow the platform to bridge the gap between various data sources, ensuring seamless integration across different software environments.</li><li>Power Fx: The platform utilizes a low-code, strongly-typed declarative language, making it accessible for developers to express logic across the suite</li></ul><p>Governance, Architecture, and Growth</p><p>For organisations looking to scale, the sources outline essential resources for administration and best practices. The Power Platform admin center provides tools for management, while the Application Lifecycle Management (ALM) guide helps teams implement structured development processes.</p><p>Furthermore, the Architecture Center and the Well-Architected framework offer guidance on design patterns and strategies to ensure workloads are efficient and reliable. For those seeking to expand their knowledge, Microsoft offers online training courses, “In a Day” workshops, and professional certifications.</p><p>Synergy with the Microsoft Ecosystem</p><p>The Power Platform does not exist in isolation. It is designed to work alongside Dynamics 365 (CRM and ERP applications) and Microsoft Azure, which provides an ever-expanding set of cloud services to meet diverse business challenges. By leveraging these connections, organizations can extend their capabilities through code or integrate with broader cloud infrastructures.</p><ul><li>Microsoft Power Platform: <a href="https://pasindu-jayasundara.short.gy/ms-power-platform">https://pasindu-jayasundara.short.gy/ms-power-platform</a></li><li>Copilot Studio: <a href="https://pasindu-jayasundara.short.gy/copilot-studio">https://pasindu-jayasundara.short.gy/copilot-studio</a></li><li>Power Apps: <a href="https://pasindu-jayasundara.short.gy/ms-powerapps">https://pasindu-jayasundara.short.gy/ms-powerapps</a></li><li>Power Automate: <a href="https://pasindu-jayasundara.short.gy/ms-power-automate">https://pasindu-jayasundara.short.gy/ms-power-automate</a></li><li>Power BI: <a href="https://pasindu-jayasundara.short.gy/ms-power-bi">https://pasindu-jayasundara.short.gy/ms-power-bi</a></li><li>Power Page: <a href="https://pasindu-jayasundara.short.gy/ms-power-pages">https://pasindu-jayasundara.short.gy/ms-power-pages</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e9c1917b980" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Developer]]></title>
            <link>https://pasindu-jayasundara.medium.com/microsoft-developer-e1283dd3c782?source=rss-78bc06b16999------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1283dd3c782</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[microsoft-development]]></category>
            <dc:creator><![CDATA[Pasindu Jayasundara]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 15:12:53 GMT</pubDate>
            <atom:updated>2026-01-30T15:12:53.665Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced tech world, the only constant is change. Whether you are a student just starting out or a professional looking to pivot, staying ahead of the curve is non-negotiable.</p><p>That is where <a href="https://pasindu-jayasundara.short.gy/3PvcCB">Microsoft Learn</a> comes in.</p><p>If you haven’t explored <a href="https://pasindu-jayasundara.short.gy/3PvcCB">Microsoft Learn</a> yet, you are missing out on one of the most comprehensive, free educational resources available on the web. Here is why I believe it is a game-changer for anyone in tech.</p><p>1. 𝗜𝘁’𝘀 𝗡𝗼𝘁 𝗝𝘂𝘀𝘁 “𝗥𝗲𝗮𝗱𝗶𝗻𝗴” — 𝗜𝘁’𝘀 “𝗗𝗼𝗶𝗻𝗴” 🛠️</p><p>One of the hardest parts of learning a new technology is setting up the environment.</p><p>solves this with interactive sandboxes. You can run code, execute Azure CLI commands, and build infrastructure directly in your browser often without needing your own credit card or subscription. It bridges the gap between theory and practice instantly.</p><p>2. 𝗧𝗮𝗶𝗹𝗼𝗿𝗲𝗱 𝗣𝗮𝘁𝗵𝘀 𝗳𝗼𝗿 𝗘𝘃𝗲𝗿𝘆 𝗥𝗼𝗹𝗲 🗺️</p><p>Overwhelmed by how much there is to learn? <a href="https://pasindu-jayasundara.short.gy/3PvcCB">Microsoft Learn</a> organizes content into Learning Paths. Whether you want to become a Data Scientist, an AI Engineer, or a DevOps specialist, there is a curated path for you. You can track your XP (experience points), earn badges, and watch your progress bar grow.</p><p>3. 𝗜𝗻𝗱𝘂𝘀𝘁𝗿𝘆-𝗥𝗲𝗰𝗼𝗴𝗻𝗶𝘇𝗲𝗱 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻𝘀 🏅</p><p>We all know the value of validation. <a href="https://pasindu-jayasundara.short.gy/3PvcCB">Microsoft Learn</a> is the official preparation hub for Microsoft Certifications.</p><p>• 𝗙𝗼𝗿 𝗦𝘁𝘂𝗱𝗲𝗻𝘁𝘀: Did you know you can often get certification exams at a significantly discounted price? It’s a massive advantage when entering the job market.</p><p>• 𝗙𝗼𝗿 𝗣𝗿𝗼𝘀: These certifications are industry standards that validate your expertise to employers worldwide.</p><p>4. 𝗖𝘂𝘁𝘁𝗶𝗻𝗴-𝗘𝗱𝗴𝗲 𝗖𝗼𝗻𝘁𝗲𝗻𝘁: 𝗔𝗜, 𝗖𝗼𝗽𝗶𝗹𝗼𝘁, 𝗮𝗻𝗱 𝗠𝗼𝗿𝗲 🤖</p><p>The platform is constantly updated. With the rise of Generative AI, <a href="https://pasindu-jayasundara.short.gy/3PvcCB">Microsoft Learn</a> has rolled out brand-new modules on Azure OpenAI Service, Microsoft Copilot, and Cloud Fundamentals. You are learning the exact tools that top companies are deploying right now.</p><p>5. 𝗔 𝗖𝗼𝗺𝗺𝘂𝗻𝗶𝘁𝘆 𝘁𝗵𝗮𝘁 𝗛𝗲𝗹𝗽𝘀 𝗬𝗼𝘂 𝗚𝗿𝗼𝘄 🤝</p><p>Beyond the modules, there is the Q&amp;A section and the Microsoft Tech Community. If you get stuck, you aren’t alone. You have access to thousands of experts and fellow learners ready to help you troubleshoot and solve complex problems.</p><p>𝗠𝘆 𝗥𝗲𝗰𝗼𝗺𝗺𝗲𝗻𝗱𝗮𝘁𝗶𝗼𝗻</p><p>If you have 15 minutes today, don’t just scroll through social media. Go to <a href="https://pasindu-jayasundara.short.gy/3PvcCB">Microsoft Learn</a>, pick a topic that interests you, and complete one module.</p><p>Your future self will thank you.</p><p>🔗 Start Learning Here: <a href="https://pasindu-jayasundara.short.gy/3PvcCB">https://pasindu-jayasundara.short.gy/3PvcCB</a></p><p>#𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁𝗟𝗲𝗮𝗿𝗻 #𝗦𝘁𝘂𝗱𝗲𝗻𝘁𝗔𝗺𝗯𝗮𝘀𝘀𝗮𝗱𝗼𝗿𝘀 #𝗖𝗹𝗼𝘂𝗱𝗖𝗼𝗺𝗽𝘂𝘁𝗶𝗻𝗴 #𝗔𝗜 #𝗖𝗮𝗿𝗲𝗲𝗿𝗚𝗿𝗼𝘄𝘁𝗵 #𝗧𝗲𝗰𝗵𝗦𝗸𝗶𝗹𝗹𝘀 #𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴𝗘𝘃𝗲𝗿𝘆𝗱𝗮𝘆</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1283dd3c782" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Microsoft Agent Framework]]></title>
            <link>https://pasindu-jayasundara.medium.com/the-microsoft-agent-framework-b724a0aa7e24?source=rss-78bc06b16999------2</link>
            <guid isPermaLink="false">https://medium.com/p/b724a0aa7e24</guid>
            <dc:creator><![CDATA[Pasindu Jayasundara]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 15:10:50 GMT</pubDate>
            <atom:updated>2026-01-30T15:10:50.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5iytiVl0-bOUraAhfnsnA.png" /></figure><ul><li>Microsoft Agent Framework: <a href="https://pasindu-jayasundara.short.gy/ai-agent-framework">https://pasindu-jayasundara.short.gy/ai-agent-framework</a></li><li>WhatsApp Chanel: <a href="https://pasindu-jayasundara.short.gy/level-up-channel">https://pasindu-jayasundara.short.gy/level-up-channel</a></li><li>Copilot Studio: <a href="https://pasindu-jayasundara.short.gy/copilot-studio">https://pasindu-jayasundara.short.gy/copilot-studio</a></li><li>Microsoft Foundry: <a href="https://pasindu-jayasundara.short.gy/azure-ai-foundry">https://pasindu-jayasundara.short.gy/azure-ai-foundry</a></li><li>AI Learning Hub: <a href="https://pasindu-jayasundara.short.gy/1N8ef0">https://pasindu-jayasundara.short.gy/1N8ef0</a></li></ul><h3>1.0 Introduction: The Next Generation of AI Agent Development</h3><p>The Microsoft <a href="https://pasindu-jayasundara.short.gy/ai-agent-framework">Agent Framework</a> is a new open-source development kit for .NET and Python, engineered to build sophisticated AI agents and multi-agent workflows. It represents the unified and forward-looking foundation for AI agent development from the teams behind the pioneering Semantic Kernel and AutoGen projects. This framework is not merely an incremental update but a strategic evolution, consolidating proven concepts into a single, cohesive platform designed to shape the future of interactive and autonomous AI applications.</p><h3>2.0 Strategic Unification: Evolving Beyond Semantic Kernel and AutoGen</h3><p>The creation of the Microsoft <a href="https://pasindu-jayasundara.short.gy/ai-agent-framework">Agent Framework</a> is a strategic move to provide developers with a single, powerful platform for agent-based AI. It is the designated successor to both Semantic Kernel and AutoGen, designed to consolidate their respective strengths while introducing novel capabilities. This unification addresses the growing complexity of AI development by offering a streamlined, enterprise-ready solution. To facilitate this transition, the project provides dedicated migration guides for teams currently using either Semantic Kernel or AutoGen.</p><p>The framework synthesizes the core strengths of its predecessors, combining AutoGen’s accessible development patterns with Semantic Kernel’s robust, enterprise-grade architecture.</p><ul><li>AutoGen’s Simplicity: The framework inherits simple, effective abstractions for creating and managing both single-agent and multi-agent patterns, significantly lowering the barrier to entry for complex AI orchestration.</li><li>Semantic Kernel’s Enterprise-Grade Features: It integrates a suite of production-ready capabilities, including session-based state management for coherent interactions, strong type safety, middleware filters for intercepting actions, comprehensive telemetry, and extensive support for various models and embeddings.</li></ul><p>Beyond this merger, the <a href="https://pasindu-jayasundara.short.gy/ai-agent-framework">Agent Framework</a> introduces explicit workflows and a robust state management system. These new features are specifically designed to give developers explicit control over multi-agent execution paths and to reliably manage long-running processes, including those that require human-in-the-loop intervention. This evolution provides a clear architectural path from simple agents to complex, orchestrated systems.</p><h3>3.0 Core Capabilities: A Dual Approach to Building Intelligent Applications</h3><p>The framework is structured around two primary capability categories: AI Agents and Workflows. This dual design provides developers with a versatile toolkit, offering tailored solutions for building everything from dynamic, autonomous agents that handle unstructured tasks to complex, orchestrated processes that require precision and reliability.</p><h3>3.1 AI Agents: Powering Autonomous and Conversational AI</h3><p>Within the framework, an AI agent is an autonomous entity that uses a Large Language Model (LLM) to process inputs, make decisions, call tools and MCP servers to perform actions, and generate responses, with support for model providers like Azure OpenAI, OpenAI, and Azure AI. It is the fundamental building block for creating conversational and interactive AI experiences.</p><h3>Optimal Scenarios for AI Agents</h3><p>Single AI agents are best suited for applications that require autonomous decision-making and the ability to operate in dynamic, underspecified environments where the exact sequence of steps is not known in advance.</p><ul><li>Customer Support: Agents can handle multi-modal customer queries (text, voice, images), use tools to retrieve information, and provide conversational responses.</li><li>Education and Tutoring: By leveraging external knowledge bases, agents can offer personalized tutoring and answer student questions in a dynamic learning environment.</li><li>Code Generation and Debugging: Agents can assist developers with implementation, code reviews, and debugging by interacting with various programming tools.</li><li>Research Assistance: Agents excel at tasks like searching the web, summarizing documents, and synthesizing information from multiple sources to aid researchers and analysts.</li></ul><h3>When to Use an Alternative Approach</h3><p>AI agents are not the ideal solution for highly structured tasks that demand strict adherence to predefined rules. Their inherent non-determinism can introduce unnecessary latency, cost, and uncertainty in predictable scenarios. An agent may also struggle with complex tasks involving a large number of tools (e.g., over 20). The guiding principle is clear:</p><p><em>“If you can write a function to handle the task, do that instead of using an AI agent.”</em></p><p>In these scenarios, where orchestrating a large toolset is required, the explicit structure of a Workflow is the more appropriate architectural choice.</p><h3>3.2 Workflows: Orchestrating Complex, Multi-Agent Processes</h3><p>A Workflow expresses a predefined sequence of operations that can include AI agents as components. Unlike a single agent’s autonomous planning, a workflow provides explicit control over the execution path, ensuring consistency and reliability. Workflows are specifically designed to handle complex, long-running processes that may involve multiple agents, human interactions, and integrations with external systems.</p><h3>Key Benefits of the Workflow System</h3><p>Workflows provide a structured and scalable solution for managing sophisticated processes, overcoming the limitations of single agents.</p><ul><li>Modularity: Workflows can be broken down into smaller, reusable components, simplifying the management and maintenance of the overall process.</li><li>Agent Integration: They enable the orchestration of multiple AI agents alongside traditional, non-agentic functions within a single process.</li><li>Type Safety: Strong typing between components ensures messages flow correctly and comprehensive validation prevents runtime errors.</li><li>Flexible Flow: A graph-based architecture supports conditional routing, parallel processing, and dynamic execution paths.</li><li>External Integration: Built-in request/response patterns allow for seamless integration with external APIs and support human-in-the-loop scenarios.</li><li>Checkpointing: Workflow states can be saved, enabling the recovery and resumption of long-running processes.</li><li>Multi-Agent Orchestration: The framework includes built-in patterns for coordinating multiple agents, including advanced models like sequential, concurrent, hand-off, and Magentic.</li><li>Composability: Workflows can be nested or combined, allowing developers to build highly complex and scalable systems from simpler parts.</li></ul><p>Understanding these distinct capabilities is crucial for making the strategic architectural choice between autonomous agents and orchestrated workflows, a decision that directly shapes an application’s reliability and scalability.</p><h3>4.0 Strategic Value and Implementation Considerations</h3><p>For technology leaders and project managers, understanding the framework’s capabilities is the first step; applying them strategically to drive business value is the next. The choice between using an individual agent and a structured workflow is a critical architectural decision that directly impacts project outcomes, scalability, and reliability.</p><p>Use AI Agents When:</p><ul><li>Tasks are unstructured and dynamic.</li><li>Processes are complex, long-running, and require multiple steps.</li><li>The sequence of actions is not known in advance.</li><li>The execution path needs to be explicitly defined and reliable.</li><li>The application requires autonomous decision-making.</li><li>Multiple agents, functions, or external systems must be coordinated.</li><li>The solution is primarily conversational and interactive.</li><li>Checkpointing, recovery, and human-in-the-loop are required.</li></ul><p>It is important to note that the Microsoft <a href="https://pasindu-jayasundara.short.gy/ai-agent-framework">Agent Framework</a> is currently in public preview. Teams planning to adopt the framework should account for this status in their project timelines and risk assessments. Feedback and issues can be submitted directly via its GitHub repository. This early-stage access provides an opportunity to influence the framework’s development while building next-generation capabilities.</p><h3>5.0 Conclusion: A Unified Foundation for Future AI Innovation</h3><p>The Microsoft <a href="https://pasindu-jayasundara.short.gy/ai-agent-framework">Agent Framework</a> represents a strategic consolidation and a significant advancement in AI application development. By unifying the simplicity of AutoGen with the enterprise-grade power of Semantic Kernel, it offers a single, comprehensive platform for building the next generation of AI solutions. Its dual focus on both autonomous agents and structured workflows provides the flexibility and control necessary to create robust, interactive, and scalable AI applications, establishing a powerful and unified foundation for future innovation.</p><ul><li>Microsoft Agent Framework: <a href="https://pasindu-jayasundara.short.gy/ai-agent-framework">https://pasindu-jayasundara.short.gy/ai-agent-framework</a></li><li>WhatsApp Chanel: <a href="https://pasindu-jayasundara.short.gy/level-up-channel">https://pasindu-jayasundara.short.gy/level-up-channel</a></li><li>Copilot Studio: <a href="https://pasindu-jayasundara.short.gy/copilot-studio">https://pasindu-jayasundara.short.gy/copilot-studio</a></li><li>Microsoft Foundry: <a href="https://pasindu-jayasundara.short.gy/azure-ai-foundry">https://pasindu-jayasundara.short.gy/azure-ai-foundry</a></li><li>AI Learning Hub: <a href="https://pasindu-jayasundara.short.gy/1N8ef0">https://pasindu-jayasundara.short.gy/1N8ef0</a></li></ul><p>#AI #Microsoft #SoftwareDevelopment #AIAgents #DotNet #Python #GenerativeAI #TechInnovation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b724a0aa7e24" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>