Skip to content

edn-query-language/eql-graphql

Repository files navigation

EQL GraphQL

This repository contains helper tools to convert EQL expressions to GraphQL strings.

(ns eql-graphql-demo
  (:require
    [edn-query-language.eql-graphql :as eql-gql]))

(eql-gql/query->graphql [{'(:user {:id 123}) [:id :name]}])
; query {
;   user(id: 123) {
;     id
;     name
;   }
; }


;; or using directly from some AST:
(eql-gql/ast->graph ast)