Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novvum/graphql-deep-dive
https://github.com/novvum/graphql-deep-dive
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/novvum/graphql-deep-dive
- Owner: Novvum
- Created: 2019-06-25T21:30:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T01:42:18.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T13:21:11.908Z (almost 2 years ago)
- Language: TypeScript
- Size: 1.69 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## **Description**
GraphQL Server Deep Dive dives into the basic parts of a GraphQL server implementation. It provides examples of a few tools and conventions that are important for teams to be aware of when building complex GraphQL APIs.#### **The Building Blocks of a GraphQL API**
- **Schema** - A type system defined for your data. This acts as a contract for a type system defined for your data. This represents a contract of what information is exposed to the API consumer.
- **Resolvers** - A set of functions defined for each type. These functions are called when types are requested and validated against the schema.#### **Managing Complex Schemas**
1. A dive into SDL-first and Code-first development.
- SDL-first example
- Code-first example with GraphQL Nexus2. A quick look at how to manage a microservice or service oriented architecture
- Schema Stitching
- Apollo Federation example
#### **Execution**
Provided by the folks at Thoughtbot, this diagram explains the lifecycle of a GraphQL request and server response.## Getting started
1. Change `index.ts` file to point at your preferred schema object. Comment out other schema imports or comment out `apolloServer` and uncomment `gateway` to explore [Schema Federation](https://www.apollographql.com/docs/apollo-server/federation/federation-spec/)
2. Run `yarn && yarn start` in root
3. Go to http://localhost:4000 to query Playground
---
Made with ❤️ by Novvum