1.1.1 • Published 5 years ago

gatsby-source-bamboohr v1.1.1

Weekly downloads
17
License
MIT
Repository
github
Last release
5 years ago

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

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago