diff --git a/README.md b/README.md index 4e8a9e2..2037872 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ export const g = new GFetch({ ### 2. Add GraphQL Codegen Plugin -``` +```javascript svelte.config.js import gQueryCodegen from '@leveluptuts/g-query/codegen' @@ -38,7 +38,7 @@ import gQueryCodegen from '@leveluptuts/g-query/codegen' ### 3. Add .graphql files -``` +```graphql UserQueries.graphql query user { @@ -56,7 +56,7 @@ The code gen will find the file and spit out a file next to it. Named `FileName. Using the above code, it would output `UserQueries.gGenerated.ts` This also gives us a `get` function for queries based on the query name. ie `getUser` for the above. -```javascript +```svelte