This repository has been archived by the owner on May 25, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: persisted query fix with fragments (#1034)
* persisted query fix with fragments * fix error message * Create fetching-data-from-github.md * Update fetching-data-from-github.md * remove console * fixes note bug * unpersist the goal query * fix: take proper parameter for FetchGoals mutation * fix: display note form only when we have a note ready * fix: proper useEffect switch for notes input Co-authored-by: TED Vortex <ted.vortex@gmail.com>
- Loading branch information
Showing
7 changed files
with
93 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Fetching Data from the GitHub GraphQL API | ||
Over the past few years, GitHub has been enabling developers to build on our platform as 3rd party integrators. This enablement does not come without limitation in rate-limiting and token access. Open Sauced, originally started as a way try the GitHub GraphQL API out with a production ready application. | ||
|
||
## Implementation Approach | ||
Open Sauced is exclusively power by the public data from open source reposistories. No only is the data sourced from open sourced repos, the onboarding flow for Open Sauced walks the user through creating their own open sourced repo to track their own contributions. | ||
|
||
## OneGraph | ||
[OneGraph](https://www.onegraph.com/) is the tool used to consume the GitHub GraphQL API through one consistent GraphQL interface. | ||
|
||
## Persisted Queries | ||
Persisted queries are an advanced GraphQL feature that allow clients to pre-register queries with the server. In a typical workflow, the client will send the query to the server as part of a build process and the server will send back an id. When the client wants to run the query, it sends the id instead of the full query string. | ||
|
||
Developers use persisted queries because they reduce the amount of bandwidth sent from the client to the server and they improve security by locking down the queries that can be sent to the server. | ||
|
||
OneGraph makes this all easy to do, read up m oreon that in [their documentation](https://www.onegraph.com/docs/persisted_queries.html). | ||
|
||
## Goals Repository | ||
Each Open Sauced user ues their own GitHub repository as a database. The repository is generated during sign up and the companion for finding open source contributions. All data in this repository is a mirror of the data you see on the opensauced.pizza dashboard. | ||
|
||
https://github.com/open-sauced/goals-template | ||
|
||
## References | ||
- [Using Persisted Queries](https://www.onegraph.com/docs/persisted_queries.html) | ||
- [GraphQL Enterprise Connect: "Persisted GraphQL", Brian Douglas](https://www.youtube.com/watch?v=yr5kSZljBxo) |
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
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