Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/src/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ npm install --save @leveluptuts/g-query graphql-tag
### 1. Initialize G

```javascript
import { GFetch } from '@leveluptuts/g-query'
// src/lib/config/g.ts

export const g = new GFetch({
Expand All @@ -36,7 +37,7 @@ vite: {
// schema: 'http://localhost:3001/graphql' // this can also be a url to a graphql api
schema: './src/lib/graphql/schema.graphql', // path to schema, schema is required
out: './src/lib/graphql', // Where you want the general schema types to output
gPath: '$lib/config/g' // Path to g, created in step 1.
gPath: '$lib/config/g', // Path to g, created in step 1.
// Optional
debug: false // boolean, this adds logging for gq files deleted and on codegen
})
Expand Down