julia> types[1]
quote
#= /home/domluna/.julia/dev/GraphQL/src/jltype.jl:177 =#
#= /home/domluna/.julia/dev/GraphQL/src/jltype.jl:177 =# Base.@kwdef mutable struct A
#= /home/domluna/.julia/dev/GraphQL/src/jltype.jl:178 =#
field1::Union{C, Missing, Nothing} = nothing
field2::Union{Int32, Missing, Nothing} = nothing
end
#= /home/domluna/.julia/dev/GraphQL/src/jltype.jl:181 =#
StructTypes.StructType(::Type{A}) = begin
#= /home/domluna/.julia/dev/GraphQL/src/jltype.jl:181 =#
StructTypes.Mutable()
end
#= /home/domluna/.julia/dev/GraphQL/src/jltype.jl:182 =#
StructTypes.omitempties(::Type{A}) = begin
#= /home/domluna/.julia/dev/GraphQL/src/jltype.jl:182 =#
true
end
end
julia> Expronicon.prettify(types[1])
quote
#= /home/domluna/.julia/dev/GraphQL/src/jltype.jl:177 =# Base.@kwdef mutable struct A
field1::Union{C, Missing, Nothing} = nothing
field2::Union{Int32, Missing, Nothing} = nothing
end
StructTypes.StructType(::Type{A}) = begin
StructTypes.Mutable()
end
StructTypes.omitempties(::Type{A}) = begin
true
end
end
(GraphQL) pkg> st
Project GraphQL v0.1.0
Status `~/.julia/dev/GraphQL/Project.toml`
[6b7a57c9] Expronicon v0.5.5
[cd3eb016] HTTP v0.9.5
[d8e11817] MLStyle v0.4.9
[83ef0002] RBNF v0.2.2
[856f2bd8] StructTypes v1.5.2