mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
d7bbb0b935
refs https://github.com/TryGhost/Arch/issues/16 - Using the API directly on the repository level prevented us from ensuring collection consistency through transactions. - This change migrates the PostsRepository to use Bookshelf model layer directly, which also allows to put queries into transactions. - Additional optimization here was removing the `getAllPosts` method from CollectionService. This is an attempt to reduce the API surface of the of the service before calling it a GA. |
||
---|---|---|
.. | ||
src | ||
test | ||
.eslintrc.js | ||
package.json | ||
README.md | ||
tsconfig.json |
Collections
Manages everything to do with Collections
Usage
Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Test
yarn lint
run just eslintyarn test
run lint and tests