55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
#### Heading
|
|
|
|
One `two` three
|
|
|
|
- [sort](/docs/queries/overview#sort) - sort by field
|
|
- [where](/docs/queries/overview) - pass a where query to constrain returned documents
|
|
|
|
```ts
|
|
const a = 1
|
|
const b = 2
|
|
const c = 3
|
|
const d = 4
|
|
```
|
|
|
|
<RestExamples
|
|
data={[
|
|
{
|
|
operation: "Find",
|
|
method: "GET",
|
|
path: "/api/{collection-slug}",
|
|
description: "Find paginated documents",
|
|
example: {
|
|
slug: "getCollection",
|
|
req: true,
|
|
res: {
|
|
paginated: true,
|
|
data: {
|
|
id: "644a5c24cc1383022535fc7c",
|
|
title: "Home",
|
|
content: "REST API examples",
|
|
slug: "home",
|
|
createdAt: "2023-04-27T11:27:32.419Z",
|
|
updatedAt: "2023-04-27T11:27:32.419Z",
|
|
},
|
|
},
|
|
drawerContent: `
|
|
#### Heading
|
|
|
|
One \`two\` three
|
|
|
|
- [sort](/docs/queries/overview#sort) - sort by field
|
|
- [where](/docs/queries/overview) - pass a where query to constrain returned documents
|
|
|
|
\`\`\`ts
|
|
const a = 1
|
|
const b = 2
|
|
const c = 3
|
|
const d = 4
|
|
\`\`\`
|
|
`
|
|
},
|
|
}
|
|
]}
|
|
/>
|