15 lines
No EOL
393 B
TypeScript
15 lines
No EOL
393 B
TypeScript
import PocketBase from 'pocketbase';
|
|
|
|
const pb = new PocketBase('http://127.0.0.1:8090');
|
|
|
|
async function main() {
|
|
const posts = await pb.collection('posts').getList(1, 500, { filter: 'slug="skrytie-s-mesta-dtp"' });
|
|
|
|
if (posts.items.length > 0) {
|
|
const content = posts.items[0].content;
|
|
console.log('First 300 chars:');
|
|
console.log(content.substring(0, 300));
|
|
}
|
|
}
|
|
|
|
main(); |