gatsby-source-smartrecruiters
Version:
Gatsby source plugin for loading job posts from smartrecruiters
68 lines (54 loc) • 1.01 kB
Markdown
# gatsby-source-smartrecruiters
> Loads job openings from smartrecruiters.com into Gatsby.js. Based on [gatsby-source-greenhouse](https://github.com/tumblbug/gatsby-source-greenhouse).
## Installation
```bash
npm install gatsby-source-smartrecruiters
```
or
```bash
yarn add gatsby-source-smartrecruiters
```
## Usage
Edit `gatsby-config.js` to use the plugin:
```
{
...
plugins: [
...
{
resolve: `gatsby-source-smartrecruiters`,
options: {
companyIdentifier: `{COMPANY_IDENTIFIER}`,
},
},
]
}
```
## Querying
You can query the all `JobPost` created by the plugin as follows:
```graphql
{
allSmartRecruitersJobPost {
edges {
node {
...
}
}
}
}
```
You can also query all `JobPost` broken out for each department:
```graphql
{
allSmartRecruitersDepartment {
edges {
node {
name
childrenSmartRecruitersJobPost {
title
}
}
}
}
}
```