diff --git a/README.md b/README.md index 66feda2..1f4082f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,61 @@ # qQuery -## +## Not like jQuery. A GraphQL Fetcher & Cache for Svelte Kit + +### UnderConstruction.gif + +More information in this space soon. API is very much in flux rn. + +### Preview + +## gFetch + +The graphql fetcher client. + +Initialize + +``` +export const g = new GFetch({ + path: Environment.apiURL +}) +``` + +Fetch + +``` +const seriesList = ({ variables}) => + g.fetch({ + queries: [{ query: SeriesListDoc, variables }], + }) + +``` + +Cache and Fetch + +``` +export async function getSeriesList(variables) { + await gQuery('seriesList', { query: seriesList, variables }) +} +``` + +Use + +``` + + + + +```