gatsby-source-bamboohr

1.1.1 • Public • Published

gatsby-source-bamboohr

A Gatsby source plugin for sourcing data into your Gatsby application from bamboohr.

The plugin creates BambooEmployee nodes from files.

Install

yarn add gatsby-source-bamboohr

How to use

In your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-bamboohr`,
      options: {
        subdomain: process.env.BAMBOO_HR_SUBDOMAIN,
        apiKey: process.env.BAMBOO_HR_API_KEY
      },
    },
  ],
}

Example Queries

Count Employees In A Department

query {
  allBambooEmployee {
    group(field: department) {
      totalCount
      fieldValue
    }
  }
}

Get List of Locations

query MyQuery {
  allBambooEmployee {
    distinct(field: location)
  }
}

/gatsby-source-bamboohr/

    Package Sidebar

    Install

    npm i gatsby-source-bamboohr

    Weekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    2.52 kB

    Total Files

    5

    Last publish

    Collaborators

    • eknowles