Skip to content

Commit

Permalink
Fix prisman typo in prisma client docs
Browse files Browse the repository at this point in the history
There are a few typos in the example where `prisma` is written as `prisman`. This PR corrects those.
  • Loading branch information
JWambaugh committed Jan 23, 2020
1 parent 0ef8c32 commit b981d3d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/prisma-client-js/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ model User {
You can provide the `id` as input value in [`create`](#create) and [`update`](#update) operations, for example:

```ts
const user = await prisman.users.create({
const user = await prisma.users.create({
data: {
id: 1
}
Expand All @@ -203,15 +203,15 @@ model User {
When creating or updating a `User` record, you can create a new list or replace the current one with a new list like so:

```ts
await prisman.users.create({
await prisma.users.create({
data: {
coinFlips: {
set: [true, false]
}
}
})

await prisman.users.update({
await prisma.users.update({
where: { id: 42 ,}
data: {
coinFlips: {
Expand Down Expand Up @@ -302,7 +302,7 @@ Creates a new record and returns the corresponding object. You can use the `sele
#### Examples

```ts
const user = await prisman.users.create({
const user = await prisma.users.create({
data: { name: 'Alice' },
})
```
Expand All @@ -322,7 +322,7 @@ Updates an existing record and returns the corresponding object. You can use the
#### Examples

```ts
const user = await prisman.users.update({
const user = await prisma.users.update({
where: { id: 1 },
data: { name: 'ALICE' },
})
Expand Down Expand Up @@ -364,7 +364,7 @@ Updates an existing or creates a new record and returns the corresponding object
#### Examples

```ts
const user = await prisman.users.upsert({
const user = await prisma.users.upsert({
where: { id: 1 },
update: { name: "ALICE" },
create: { name: "ALICE" }
Expand All @@ -385,7 +385,7 @@ Deletes an existing record and returns the corresponding object. You can use the
#### Examples

```ts
const user = await prisman.users.delete({
const user = await prisma.users.delete({
where: { id: 1 },
})
```
Expand Down Expand Up @@ -419,7 +419,7 @@ The `count()` method doesn't take any input arguments.
#### Examples

```ts
const userCount = await prisman.users.count()
const userCount = await prisma.users.count()
// userCount = 42
```

Expand Down

0 comments on commit b981d3d

Please sign in to comment.