0.0.4 • Published 2 years ago

contentful-collection v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

(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)
0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago