restQL-clojure allows you to run restQL queries directly from JVM applications, making easy to fetch information from multiple services in the most efficient manner. To query using HTTP calls from any client check restQL-http:
from search
with
role = "hero"
from hero as heroList
with
name = search.results.name
Links
Who're talking about restQL
Add restQL dependency to your project
Lein
[b2wdigital/restql-core "2.4.0"]
(require '[restql.core.api.restql :as restql])
(restql/execute-query :mappings { :user "http://your.api.url/users/:name" } :query "from user with name = $name" :params { :name "Duke Nukem" } )
In the example above restQL will call user API passing "Duke Nukem" in the name param.
As prerequisites to build restQL from source we have:
Just clone this repo and run "lein jar".
If you need help you can reach the community on Telegram
Copyright © 2016 B2W Digital
Distributed under the MIT License.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close