Comment by advancingu

2 years 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

Have you considered using https://tailcall.run It can automatically create a high performance graphql API.

  • Thanks 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 ). 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.