Skip to content

[FIX] Start From Scratch - broken TS schema in "Write data into the database" section - #400

Merged
mhwelander merged 4 commits into
prisma:masterfrom
SMenigat:patch-1
Jun 23, 2020
Merged

mhwelander merged 4 commits into
prisma:masterfrom
SMenigat:patch-1

Conversation

@SMenigat

@SMenigat SMenigat commented Jun 1, 2020

Copy link
Copy Markdown
Contributor

When following along the docs I stumbled over a minor error in the Start From Scratch / Write data into the database section.
When just copy & pasteing the examples the following TS error gets thrown:

ts-error

A quick look reveals some spelling errors in the create syntax. When fixed as proposed the code execution yields the correct result:

fixed-ts-error

@mhwelander

Copy link
Copy Markdown
Contributor

Good catch and thanks for raising a PR! 💚 I've updated the schema file instead (posts and profile) as we want to keep the example consistent with other pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants