0.0.18 • Published 3 years ago

@bageldb/gridsome-source v0.0.18

Weekly downloads
19
License
ISC
Repository
-
Last release
3 years ago

@bageldb/gridsome-source

BagelDB source for Gridsome. This package is under development and may the API might change without warning.

Install

  • npm install @bageldb/gridsome-source

Usage

The plugin accepts two option arguments named apiToken and collections. The api token will be generated in the project settings area. The collections object should be structured as follows:

const collections = {
  name: "blog", // id of the collection
  typeName: "BlogPosts", // (optional) name of type for GraphQL
  sort: { field: "<fieldName>", sortOrder: "<ASC/DESC>" }, // optional
};

module.exports = {
  plugins: [
    {
      use: "@bageldb/gridsome-source",
      options: {
        apiToken: "BAGEL_TOKEN", // required
        collections: collections,
      },
    },
  ],
};
0.0.18

3 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago