Liking cljdoc? Tell your friends :D

Change Log

All notable changes to this project will be documented in this file. This change log follows the conventions of keepachangelog.com.

0.2.5 - 2017-12-21

Added

  • Aliases at field level #23
  • Subscription as valid operation type #21

Changed

  • Updated clojure to 1.9.0

0.2.4 - 2017-10-25

Added

  • Support for unions. Pull request #16
  • Variable defaults
  • _typename metafield support
  • Mutation support

Chnaged

  • Updated clojurescript to 1.9.946
  • Updated clojure to 1.9.0-beta2

0.2.3 - 2017-08-23

Added

  • Support for queries returning scalars. Pull request #10
  • Arguments for fields on all levels of query are allowed. All you need to do is Just wrap field's keyword and args map in vector, like {:venia/queries [[:employee [[:name {:preferNickname true}] :address]]]}

Fixed

  • arg->str for PersistentHashMap in cljs. Pull request #11
  • arg->str for List, LazySeq and IndexedSeq. Pull request #12

Changed

  • Updated clojurescript version to 1.9.908

0.2.2 - 2017-06-26

Added

  • Fragment and variable validation

Fixed

  • Args only case for nested fields

0.2.1 - 2017-06-02

Added

  • Support for variables

Changed

Breaking changes:

  • Large refactor of core namespace - API changes

Moved away from huge nested vectors as query definitions to neat query map definitions. After all, simplicity is all that matters. Now, queries are defined like this:

{:venia/operation {:operation/type :query
                   :operation/name "employeeQuery"}
 :venia/variables [{:variable/name "id"
                    :variable/type :Int}
                   {:variable/name "name"
                    :variable/type :String}]
 :venia/queries   [{:query/data  [:employee {:id     :$id
                                             :active true
                                             :name   :$name}
                                  :fragment/comparisonFields]
                    :query/alias :workhorse}
                   {:query/data  [:employee {:id     :$id
                                             :active false}
                                  :fragment/comparisonFields]
                    :query/alias :boss}]
 :venia/fragments [{:fragment/name   "comparisonFields"
                    :fragment/type   :Worker
                    :fragment/fields [:name :address [:friends [:name :email]]]}]}

:venia/queries is only one required key, others are optional. However, rest of data needs to be valid as well if added.

Query's data can be also defined as simple vector:

{:venia/queries [[:employee {:id 1 :active true} [:name :address [:friends {:id 1} [:name :email]]]]]}
  • Fragments functionality updated to be more explicit

Notice how fragments are defined and referenced in code example above.

0.1.2 - 2017-05-30

Changed

  • Updated clojure and clojurescript to 1.9.0-alpha17 and 1.9.562

Fixed

  • 'nil' argument is serialized to 'null'

Added

  • Docstrings to functions in core namespace

0.1.1 - 2017-05-25

Fixed

  • Fix ArgumentFormatter in cljs
  • Fux throw-ex in cljs

Added

  • Nested fields can also have arguments

0.1.0 - 2017-04-30

Initial release

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close