Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Connor Wilson
committed
Nov 13, 2018
1 parent
3297d96
commit 92ac532
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
# gatsby-source-cat-facts | ||
|
||
``` | ||
yarn add gatsby-source-cat-facts | ||
``` | ||
|
||
Want Cat Facts ([source](https://alexwohlbruck.github.io/cat-facts/)) in your Gatsby app? Yes, obviously we all do. | ||
|
||
Install this package, and add `'gatsby-source-cat-facts'` to your plugins array in `gatsby-config.js`. Run `gatsby develop`, head to the GraphiQL IDE and run: | ||
|
||
``` | ||
{ | ||
allCatFacts { | ||
catFacts: edges { | ||
catFact: node { | ||
text | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
Look! Cat Facts! | ||
|
||
🐈 |