The @contentql/core package extends your default Payload CMS configuration by
integrating pre-built collections and plugins. These configurations can be
extended further to match your project needs. Itβs essential to have a solid
understanding of blocks and collections before diving into customizations.
For detailed information, check the official package here:
To access collection slugs in your routes, use the following import:
route.ts
// This will provide the slugs of all collectionsimport { collectionSlug } from '@contentql/core'const { docs } = await payload.find({ collection: collectionSlug['blogs'], depth: 5, draft: false,})
Whenever we make changes to any of our plugins or add a new feature, these
updates are delivered as a package update. If you're creating a theme, you will
automatically get the latest features and improvements through these updates,
ensuring your project stays aligned with the latest version of the package.