<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/seeding-a-database-with-prisma-typescript--dwrevbqgt" -->

---
title: Seeding a Database with Prisma (TypeScript) | daily.dev
description: A tutorial on how to seed a database with Prisma in a TypeScript application.
canonical: https://daily.dev/posts/seeding-a-database-with-prisma-typescript--dwrevbqgt
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Seeding a Database with Prisma (TypeScript) | daily.dev
og:description: A tutorial on how to seed a database with Prisma in a TypeScript application.
og:url: https://daily.dev/posts/seeding-a-database-with-prisma-typescript--dwrevbqgt
og:image: https://api.daily.dev/og/posts/DWReVbQGT.png
og:image:alt: Seeding a Database with Prisma (TypeScript)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Seeding a Database with Prisma (TypeScript)

**[Robin Wieruch](https://daily.dev/sources/robinwieruch)** · [@rwieruch](https://daily.dev/rwieruch) · 1 min read · 12 upvotes · 0 comments

## Summary

A tutorial on how to seed a database with Prisma in a TypeScript application.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.robinwieruch.de/prisma-seeding-database/>

---

Tags: [#database](https://daily.dev/tags/database), [#typescript](https://daily.dev/tags/typescript), [#npm](https://daily.dev/tags/npm), [#prisma](https://daily.dev/tags/prisma)

[View this post on daily.dev](https://daily.dev/posts/seeding-a-database-with-prisma-typescript--dwrevbqgt)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Seeding a Database with Prisma (TypeScript)","url":"https://daily.dev/posts/seeding-a-database-with-prisma-typescript--dwrevbqgt","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/seeding-a-database-with-prisma-typescript--dwrevbqgt"},"datePublished":"2024-03-21T09:42:22.383Z","dateModified":"2024-05-09T08:29:02.242Z","description":"A tutorial on how to seed a database with Prisma in a TypeScript application.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a0aec5c958f2665cd9007f066a4277a9?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a0aec5c958f2665cd9007f066a4277a9?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Robin Wieruch","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Robin Wieruch","url":"https://daily.dev/rwieruch","image":"https://avatars.githubusercontent.com/u/2479967?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1500}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/seeding-a-database-with-prisma-typescript--dwrevbqgt","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":12},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"database,typescript,npm,prisma","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Robin Wieruch","item":"https://daily.dev/sources/robinwieruch"},{"@type":"ListItem","position":3,"name":"Seeding a Database with Prisma (TypeScript)"}]}
```

