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)
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i gatsby-source-bamboohr

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

2.52 kB

Total Files

5

Last publish

Collaborators

  • eknowles