Skip to content

Commit

Permalink
Updated README - fixed plugins directory in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcaloon committed May 14, 2020
1 parent bdec78e commit cfbd670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const groqQuery = `
```
4. To use a GROQ static query, use the `useGroqQuery` hook:
```
import { useGroqQuery } from 'src/plugins/gatsby-plugin-groq';
import { useGroqQuery } from 'plugins/gatsby-plugin-groq';
export function() {
Expand All @@ -56,7 +56,7 @@ export function() {
}
```
5. For more flexibility and advanced usage check out [Fragments](#fragments")
5. For more flexibility and advanced usage check out [Fragments](#fragments)

## 🤔 What is This? <a name="introduction"></a>
Gatsby is an amazing tool that has helped advance modern web development in significant ways. While many love it for its magical frontend concotion of static generation an rehydration via React, easy routing, smart prefetching, image rendering, etc., one of the key areas where it stands out from other similar tools is its GraphQL data layer. This feature is in large part the reason why some love Gatsby and why others choose to go in another direction. Being able to source data from multiple APIs, files, etc. and compile them altogether into a queryable GraphQL layer is ***amazing***, but many developers don't enjoy working with GraphQL. This is where GROQ comes in.
Expand Down

0 comments on commit cfbd670

Please sign in to comment.