contentful-collection
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

(get) Contentful Collection

Version Downloads/week License TypeScript

Get all pages of any contentful collection

Install

yarn

yarn add contentful-collection

npm

npm i contentful-collection

Usage

Query entries with contentful.js

import contentful from "contentful";
import getContentfulCollection from "contentful-collection";

const client = contentful.createClient({
  space: "<space>",
  accessToken: "<token>"
});

const query = {content_type: "<my-content-type>"};
const allItems = await getContentfulCollection(q => client.getEntries(q), query)

Readme

Keywords

none

Package Sidebar

Install

npm i contentful-collection

Weekly Downloads

16,275

Version

0.0.4

License

MIT

Unpacked Size

8.36 kB

Total Files

10

Last publish

Collaborators

  • marcolink