Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorishermans/gatsby-source-rss-cat
Source plugin for pulling data into Gatsby from rss feed, grouped in categories.
https://github.com/jorishermans/gatsby-source-rss-cat
Last synced: 10 days ago
JSON representation
Source plugin for pulling data into Gatsby from rss feed, grouped in categories.
- Host: GitHub
- URL: https://github.com/jorishermans/gatsby-source-rss-cat
- Owner: jorishermans
- Created: 2019-10-15T19:55:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:46:35.000Z (almost 2 years ago)
- Last Synced: 2023-04-03T17:32:25.694Z (over 1 year ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# gatsby-source-rss-cat
Source plugin for pulling data into Gatsby from rss feed, grouped in categories.
## How to use
```javascript
// In your gatsby-config.js
module.exports = {
plugins: [
/*
* Gatsby's data processing layer begins with “source” plugins. Here we
* setup the site to pull data from the "documents" collection in a local
* MongoDB instance
*/
{
resolve: `gatsby-source-rss-cat`,
options: { category: `technology`, feeds: [`https://news.ycombinator.com/rss`, `http://feeds.feedburner.com/TechCrunch/startups`] },
},
],
}
```## Plugin options
- **category**: category that your feeds are related too
- **feeds**: an array of url paths to the rss feeds## How to query your rss feed data using GraphQL
Below is a sample query for fetching all rss feed document nodes for this plugin.
```graphql
query {
allRssFeedCatDocuments {
edges {
node {
...
}
}
}
}
```