New! GraphQL Plugin for the Jekyll (Static) Website Compiler by Florian Thomas

Hello,
allow my to highlight the new and latest and geatest jekyll plugin / addon / extension, that is, jeql - that let’s you query online (graph) data services with GraphQL and use the data in JSON in your templates w/ liquid.

Find out more @ https://github.com/Crunch09/jeql

3 Likes

Nice but not working!!! or may be I miss something or not well explained on the github repo…

I have this error:
Liquid Exception: No such file or directory @ rb_sysopen - /home/myblog/_graphql/last_touched_repositories.json in profile.md

@ehabdevel Hi, i’m the author of that plugin. Does the file from the error message exist ? In it you should describe the graphQL payload that should be send to the Github API. If it is still not working, please file an issue on Github and I’m happy to help.

Hey! I’ve also had a go with the plugin but having some trouble. Is the query format the same as just a regular graphql query? Also would it be possible to provide other examples as well the GitHub API? Thanks!

Hey,
sorry for my late reply and thank you for checking out the plugin! Yes, the query format should be the same, you can see an example on my blog repo: https://github.com/Crunch09/crunch09.github.io/blob/master/_graphql/pinned.json

I am happy to add more examples, do you have any specific API in mind?

Hey! That’s alright, I’ve just been experimenting with it to see what’s possible. I’ve been trying to get it working with the new Ghost GraphQL API, I’ve got it working in the Gatsby version I made but this is proving more difficult. I’ve got the code here in a repo but I think I’m formatting the query incorrectly https://github.com/daviddarnes/jekyll-ghost-blog
It’s just an experiment so it’s not pressing at all, I’m just interested to see it working :). Thanks for your reply!

On a related note, Contentful just released a Ruby GraphQL Client:

1 Like

Just saw this now…
Just finishing off a GraphQL input from a home-rolled CMS (Postgresql / Postgraphile / temporary LibreOffice Base front end), extending a Python program i was already using to generate new pages for individual items.
We have hundreds of images to maintain against a product catalog, so the ability to drag / drop or browse images straight into Postgresql and then pull them out again and loading products and images straight to Jekyll automatically is a big win for us.