Commit 1366f50e authored by Ivar Refsdal's avatar Ivar Refsdal

Update readme

parent d4923553
# lacinia-datomic-pull # lacinia-datomic-pull POC
A Clojure library designed to ... well, that part is up to you. Example input:
## Usage ```graphql
query { human(id: "5bbb36ea-4e3a-4e21-a7d6-bed3450a5d34") {
id
name
mood
moods
visited_countries {
name
}
address {
street
city
country {
id
name
}
}
}}
```
FIXME Generates the following pull pattern:
```clojure
[[:human/id :as :id]
[:human/name :as :name]
{[:human/mood :as :mood] [:db/ident]}
{[:human/moods :as :moods :default []] [:db/ident]}
{[:human/visited_countries :as :visited_countries :default []]
[[:country/name :as :name]]}
{[:human/address :as :address]
[[:address/street :as :street]
[:address/city :as :city]
{[:address/country :as :country]
[[:country/id :as :id] [:country/name :as :name]]}]}]
```
Assumes 1-to-1 mapping between [lacinia](https://github.com/walmartlabs/lacinia)
schema and [Datomic](https://www.datomic.com/) schema.
## License ## License
Copyright © 2018 FIXME Copyright © 2018 Ivar Refsdal
Distributed under the Eclipse Public License either version 1.0 or (at Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version. your option) any later version.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment