gatsby-source-asana

1.1.4 • Public • Published

Description

Gatsby Source plugin for pulling tasks from Asana projects.

Learning Resources

How to install

npm install --save gatsby-source-asana

Examples of usage

In your gatsby-config.js :

{
  resolve: `gatsby-source-asana`,
  options: {
    apiToken: `<your Asana token>`,
    projectId: `<your Asana project id>`,
    fields: ['name', 'assignee']
  }
}

How to query for data (source plugins only)

Query all tasks

export const query = graphql`
{
  allTask {
    nodes {
      id
      name
    }
  }
}

Query a single task by id

export const pageQuery = graphql`
  query ($id: String!) {
    task(id: { eq: $id }) {
      id
    }
  }
`;

Package Sidebar

Install

npm i gatsby-source-asana

Weekly Downloads

1

Version

1.1.4

License

MIT

Unpacked Size

2.98 kB

Total Files

4

Last publish

Collaborators

  • impauloalves