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

Chore: Fix typo in multiple files #5389

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ As an example, the following model adds a `Brin` index to the `value` field with
model Example {
id Int @id
value Int
// ^ field type macthing the operator class
// ^ field type matching the operator class

@@index([value(ops: Int4BloomOps)], type: Brin)
// ^ operator class ^ index type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ prisma.$use(async (params, next) => {

<Admonition type="warning">

Do not invoke <inlinecode>next</inlinecode> multiple times within a middleware when using [batch transactions](/concepts/components/prisma-client/transactions#sequential-prisma-client-operations). This will cause you to break out of the transaction and lead to unexepected results.
Do not invoke <inlinecode>next</inlinecode> multiple times within a middleware when using [batch transactions](/concepts/components/prisma-client/transactions#sequential-prisma-client-operations). This will cause you to break out of the transaction and lead to unexpected results.

</Admonition>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ prisma.log.create({

This API change does not apply to the MongoDB connector where there is not a difference between a JSON null and a database NULL.

They also do not apply to the `array_contains` operator becuase there can only be a JSON null within an JSON array. Since there cannot be a database NULL within a JSON array, `{ array_contains: null }` is not ambiguous.
They also do not apply to the `array_contains` operator because there can only be a JSON null within an JSON array. Since there cannot be a database NULL within a JSON array, `{ array_contains: null }` is not ambiguous.

</Admonition>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Error: Your schema.prisma could not be found, and we detected that you are using
Find out why and learn how to fix this: https://pris.ly/d/schema-not-found-nextjs
```

If you are using a Prisma version earlier than 4.11.0, the error message you will recieve will look similar to the message below:
If you are using a Prisma version earlier than 4.11.0, the error message you will receive will look similar to the message below:

```
Error: ENOENT: no such file or directory, open '/prisma-next-mono-reproduction/packages/service/.next/cache/webpack/client-development/schema.prisma'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ When Prisma does an upsert, it first checks whether that record already exists i
- If the record does not exist, then Prisma creates that record.
- If the record exists, then Prisma updates it.

When your application tries to perform two or more concurrent upsert operations, then a race condition might happen where two or more operations do not find the record and therefore try to create that record. In this situation, one of the operations succesfully creates the new record but the other operations fail and return a unique key constraint error.
When your application tries to perform two or more concurrent upsert operations, then a race condition might happen where two or more operations do not find the record and therefore try to create that record. In this situation, one of the operations successfully creates the new record but the other operations fail and return a unique key constraint error.

##### Solution

Expand Down
2 changes: 1 addition & 1 deletion content/800-data-platform/200-pulse/400-api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Pulse allows you to subscribe to change events based on filter conditions and op
You must wrap your filter criteria inside a `before` or `after` object depending on the type of event your subscription is listening for:

- `before`: `delete` events
- `after`: `create` and `udpate` events
- `after`: `create` and `update` events

This makes it explicit that the specified filter criteria apply to the `before` or `after` state of the change event.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Several reasons related to the Data Proxy or database configuration might cause

- The time it took the database to process the query pushed it over the timeout limit
- The payload response is large and could not be processed within the timeout limit
- The depth of the query is large (it includes mutliple relational fields)
- The depth of the query is large (it includes multiple relational fields)

## **Solution**

Expand Down