Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate README to 0.14.0 #2162

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Simple Wasp config file in which you describe the high-level details of your web

app todoApp {
title: "ToDo App", // visible in the browser tab
wasp: { version: "^0.13.0" },
wasp: { version: "^0.14.0" },
auth: { // full-stack auth out-of-the-box
userEntity: User, methods: { email: {...} }
}
Expand All @@ -55,11 +55,13 @@ query getTasks {
entities: [Task] // Automatic cache invalidation.
}

entity Task {=psl // Your Prisma data model.
id Int @id @default(autoincrement())
description String
isDone Boolean @default(false)
psl=}
// file: schema.prisma

model Task { // Your Prisma data model.
id Int @id @default(autoincrement())
description String
isDone Boolean @default(false)
}
```

The rest of the code you write in React / Node.js / Prisma and just reference it from the .wasp file.
Expand Down
Loading