Tech TutorBangla Web Documentation
Portfolio
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • PrismaPostgres Documentation40টি অধ্যায়
প্রযুক্তি নির্বাচন
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • Prisma Intro
  • Prisma vs Raw SQL
  • Setup & Install
  • Schema Basics
  • Models
  • Relations
  • Migrations
  • Prisma Client
  • Create & Upsert
  • Read Queries
  • Update & Delete
  • Query Filters
  • Sort & Pagination
  • Select & Include
  • Nested Writes
  • Transactions
  • Aggregation
  • JSON Fields
  • Raw SQL
  • TechShop Schema
  • TechShop Seed
  • Relations Advanced
  • Env Config
  • Global Client
  • Next.js + Prisma
  • Express API
  • Error Handling
  • Performance
  • Connection Pool
  • Prisma Studio
  • Deploy Migrations
  • TechShop Indexes
  • TechShop Cart
  • TechShop Stats API
  • Schema Evolution
  • Debugging
  • Common Mistakes
  • Best Practices
  • Interview Questions
  • Recap & Next
  1. Docs
  2. PrismaPostgres
  3. Json scalar — flexible data (spec)
PrismaPostgresAdvanced

Json scalar — flexible data (spec)

PostgreSQL jsonb-র সাথে — read/write ও filter।

6টি অংশবাংলা ভাষায়

model-এ spec Json? (টপিক ৫)। Prisma Client-এ value plain-object/array — লেখা যত সহজ:

await prisma.product.update({
  where: { id: 3 },
  data: {
    spec: { brand: "Logitech", warranty: "1y", ports: 2 },
  },
});

read:

const p = await prisma.product.findUnique({
  where: { id: 3 },
});
// p.spec.brand --- 'Logitech'
  • Json → Postgres-এ jsonb
  • filter path-ভিত্তিক: where: { spec: { path: ['brand'], equals: 'Logitech' } }
  • জটিল jsonb query-তে $queryRaw বেইস — বড় flexibility
jsonb vs column

রিলেশাল filter-থেকে jsonb-তে সমর্থন-থেকে Prisma-র path সীমিত — কতখানি regular data, কতখানি flexible — পরিকল্পনা করতে ভুলবেন না।

শেষ প্যারায় নিজে practice করুন — কোড কপি করে নিজের এডিটরে চালিয়ে দেখুন।
আগেরcount, aggregate, groupByপরের$queryRaw / $executeRaw — Prisma-র নিয়ন্ত্রক
Tech Tutor

বাংলায় ওয়েব ডেভেলপমেন্ট ডকুমেন্টেশন শিখুন — ধাপে ধাপে।

Homeসব ডকুমেন্টেশনQuick Startআমার নোটস

© 2026 Tech Tutor. বাংলায় শিখুন, বাংলায় গড়ুন।

mdanamolhasan1998@gmail.com