https://github.com/sporto/gleam-graphql-server-exploration
https://github.com/sporto/gleam-graphql-server-exploration
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sporto/gleam-graphql-server-exploration
- Owner: sporto
- Created: 2024-05-04T02:44:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-05T02:25:13.000Z (about 1 year ago)
- Last Synced: 2024-12-29T19:58:31.869Z (6 months ago)
- Language: Gleam
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gleam GraphQL server exploration
This is some exploration on how a GraphQL server for Gleam could be build.
The aim is to have a fully type safe API. Resolvers should have properly typed inputs and outputs (not Dynamic or Dicts).
This would use code generation to create the server.
## Library code
This is the library code, which contains types like `Field` and `Object`. These
types are used to describe a GraphQL schema.This would also include a way to parse an incoming query / mutation.
## Application code
This is the application code written by the developers, this code defines objects and resolvers using application types.
## Generated code
This is generated from the application code. This would generate two outputs:
## Schema
This describe the GraphQL schema. Used for generating an IDL and instrospection.
## Resolver
Used during runtime to resolve the query.