This repository has been archived by the owner on Apr 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an abstraction layer to the API (#117)
- Added graphql-codegen packages to generate types and custom Apollo hooks for both local and remote APIs. - Refactored all of the AppSync API to use the new generated types. - Set up queries for the local API and a way to switch between the two APIs. - Reorganised component and page imports throughout. - Fixed bug with author field updates never making it to the backend on prospect approval. Closes #99.
- Loading branch information
Showing
60 changed files
with
5,086 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
overwrite: true | ||
schema: "http://localhost:4000" | ||
documents: ["src/api/local/queries/*.ts", "src/api/local/mutations/*.ts", "src/api/local/fragments/*.ts"] | ||
generates: | ||
src/api/local/generatedTypes.ts: | ||
plugins: | ||
- "typescript" | ||
- "typescript-operations" | ||
- "typescript-react-apollo" |
Oops, something went wrong.