Skip to content

Commit

Permalink
Updated code highlighting in samples to match NPM README
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Jul 9, 2024
1 parent 3382273 commit b162aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ CREATE TABLE IF NOT EXISTS "YourCollectionName" (

**E.g. the MongoDB update syntax:**

```typescript
```ts
const pongoCollection = pongoDb.collection<User>("users");

await pongoCollection.updateOne(
Expand All @@ -132,7 +132,7 @@ WHERE _id = '137ef052-e41c-428b-b606-1c8070a47eda';

**Or for query:**

```typescript
```ts
const result = await pongoCollection
.find({ "address.history": { $elemMatch: { street: "Elm St" } } })
.toArray();
Expand Down

0 comments on commit b162aa4

Please sign in to comment.