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


#1

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


#2

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


#3

@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.


#4

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!


#5

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?


#6

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!


#7

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