It's a plugin a wrote for my single usecase:
npm install @rogovdm/gatsby-source-mailchimpIt's a plugin a wrote for my single usecase:
> Display number of my newsletter subscribers in my gatsby blog
```
yarn add @rogovdm/gatsby-source-mailchimp
gatsby-config.js
`javascript@rogovdm/gatsby-source-mailchimp
[
{
resolve: ,`
options: {
id: '
key: '
}
}
];
index.js
`javascript
export const pageQuery = graphql
query {
allMailchimpList {
edges {
node {
id
stats {
member_count
}
}
}
}
};`
- You can get id` in settings of your list.
- You can can your API key in account setting of your mailchimp account.