pocketbase / site

PocketBase Site
https://pocketbase.io
MIT License
76 stars 49 forks source link

Misleading comments in api-collections #37

Closed schmt5 closed 1 year ago

schmt5 commented 1 year ago

As I understand the code, the term "records" should be replaced with "collections" (only in comments).

// fetch a paginated records list
const pageResult = await pb.collections.getList(1, 100, {
    filter: 'created >= "2022-01-01 00:00:00"',
});

// you can also fetch all records at once via getFullList
const collections = await pb.collections.getFullList({ sort: '-created' });

// or fetch only the first collection that matches the specified filter
const collection = await pb.collections.getFirstListItem('type="auth"');
ganigeorgiev commented 1 year ago

Thanks! I've updated it.