View Source argo_graphql (argo v1.0.4)
Summary
Types
-type xform_action() :: cont | skip.
-type xform_func(Type, Acc) :: xform_func(Type, Acc, Type, Acc).
-type xform_func(TypeIn, AccIn, TypeOut, AccOut) :: fun((TypeIn, AccIn) -> xform_result(TypeOut, AccOut)).
-type xform_result(TypeOut, AccOut) :: xform_action() | {xform_action(), AccOut} | {xform_action(), TypeOut, AccOut}.
Functions
-spec display(IoDevice, Type, Options) -> ok when IoDevice :: io:device(), Type :: dynamic(), Options :: argo_graphql_printer:options().
-spec format(Type) -> Output when Type :: dynamic(), Output :: unicode:unicode_binary().
-spec format(Type, Options) -> Output when Type :: dynamic(), Options :: argo_graphql_printer:options(), Output :: unicode:unicode_binary().
-spec xform(TypeIn, AccIn, Fun) -> {TypeOut, AccOut} when TypeIn :: dynamic(), AccIn :: dynamic(), Fun :: xform_func(TypeIn, AccIn, TypeOut, AccOut), TypeOut :: dynamic(), AccOut :: dynamic().