zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit e1e3339e81af875e0b7040a3599ac6d33f1677dc
parent 9ea6eff658c340b878efa77e37ed425483a5cdfa
Author: srfsh <dev@srf.sh>
Date:   Tue, 13 Sep 2022 17:41:23 +0300

Zenflows.GQL.Type: add json scalar type

Diffstat:
Msrc/zenflows/gql/type.ex | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/zenflows/gql/type.ex b/src/zenflows/gql/type.ex @@ -41,6 +41,12 @@ scalar :url64, name: "Url64" do serialize & &1 end +@desc "A JSON document encoded as string." +scalar :json, name: "JSON" do + parse &Jason.decode/1 + serialize & &1 +end + @desc "Cursors for pagination" object :page_info do @desc """