urbit/pkg/arvo/mar/graph/update.hoon

27 lines
674 B
Plaintext
Raw Normal View History

/+ *graph-store
2020-09-18 23:50:34 +03:00
=* as-octs as-octs:mimes:html
::
|_ upd=update
2020-09-03 17:12:12 +03:00
++ grad %noun
++ grow
|%
2020-09-03 17:12:12 +03:00
++ noun upd
++ json (update:enjs upd)
++ resource
?+ -.q.upd !!
?(%run-updates %add-nodes %remove-nodes %add-graph) resource.q.upd
?(%remove-graph %archive-graph %unarchive-graph) resource.q.upd
?(%add-tag %remove-tag) resource.q.upd
?(%add-signatures %remove-signatures) resource.uid.q.upd
==
2020-09-18 23:50:34 +03:00
++ mime [/application/x-urb-graph-update (as-octs (jam upd))]
--
::
++ grab
|%
++ noun update
++ json update:dejs
2020-09-18 23:50:34 +03:00
++ mime |=([* =octs] ;;(update (cue q.octs)))
--
--