694ab1d32d
refs https://github.com/TryGhost/Arch/issues/46 - Similarly to post filters, collection filters now support both 'tag' and 'tags' nql filter keys when defining a filter for related tag slugs. For example, both `tag:avocado` and `tags:avocado` would both be valid collection filters that would filter by the same 'slug' property of the tags assigned to a post. - Along with these changes had to rework the tags property of the collection posts to match the shape used in post resources. Moved from: `tags: ['bacon', 'broc']` to `tags:[{slug: 'bacon'}, {slug: 'broc'}]` |
||
---|---|---|
.. | ||
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