3 ms·
I created an open source library that turns structured text data (YAML) in a Git repository on the fly into a GraphQL API with CRUD queries / mutations. All th
by advancingu 3y ago
I created an open source library that turns structured text data (YAML) in a Git repository on the fly into a GraphQL API with CRUD queries / mutations.
All that is needed in the repository is a plain text GraphQL schema file that defines what the data structures look like. The Git repository itself can be located on GitHub, GitLab, or in the local filesystem.
https://github.com/commitspark/graphql-api https://github.com/commitspark/graphql-api
- tusharmath 3y agoHave you considered using https://tailcall.run https://tailcall.run It can automatically create a high performance graphql API.
- advancingu 3y agoThanks for the pointer. Did you have a specific scenario in mind where this would be helpful? Tailcall looks like something that could go in front of my library as an orchestration gateway. However, as my library intentionally does not include any transport mechanism, you'd first have to expose it over HTTP (e.g. https://github.com/commitspark/example-http-express https://github.com/commitspark/example-http-express ). In my case, I actually have a couple of Next.js web apps where I load the library directly into the code instead and pass my queries to it without first going through HTTP.