Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import allSubjects from "../graphQL/subjects/allSubjects.graphql";
- workbox.routing.registerRoute(
- /graphql/,
- ({ url, event }) => {
- return fetch(event.request).catch(err => {
- let { query, variables } = parseQueryString(url.search);
- if (query == allSubjects) {
- return readTable("subjects", "name").then(gqlResponse("allSubjects", "Subjects"));
- }
- });
- },
- "GET"
- );
Add Comment
Please, Sign In to add comment