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 09e851a commit 02260b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
4 changes: 2 additions & 2 deletions src/packages/pongo/src/postgres/filter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { PongoFilter } from '../../main';
import { entries } from '../../main/typing';
import { Operators, handleOperator, hasOperators } from './queryOperators';

export * from "./queryOperators";
export * from './queryOperators';

const AND = 'AND';

Expand Down Expand Up @@ -32,4 +32,4 @@ const constructComplexFilterQuery = (
};

const isRecord = (value: unknown): value is Record<string, unknown> =>
value !== null && typeof value === 'object' && !Array.isArray(value);';
value !== null && typeof value === 'object' && !Array.isArray(value);

0 comments on commit 02260b5

Please sign in to comment.