https://github.com/graphile/cookbook
Small examples to answer specific questions.
https://github.com/graphile/cookbook
Last synced: 9 months ago
JSON representation
Small examples to answer specific questions.
- Host: GitHub
- URL: https://github.com/graphile/cookbook
- Owner: graphile
- Created: 2018-11-24T13:18:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T10:33:40.000Z (over 1 year ago)
- Last Synced: 2025-04-10T23:43:42.616Z (9 months ago)
- Language: JavaScript
- Size: 199 KB
- Stars: 21
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Small Examples
This repository is a monorepo collection of small examples to answer user
questions and be reference for the documentation.
Each example should be self-contained in its own folder in `examples/` with
its own README.
All examples share the same database `graphile_small_examples` and must only
use their own PostgreSQL schemas to stop them from stepping on each-other's
toes.
Global concerns, such a extensions, should go into the `./scripts/init` script...
`./scripts/init` creates the `graphile_small_examples` database if necessary,
then initialises each of the apps, and if they define `before` / `after`
scripts it runs them. If they produce `data/before.graphql` and
`data/after.graphql` then it will also create the `data/graphql.diff` file.
Thanks for reading, please go read through the relevant folder in
`examples/*` now!