Yson.Parser.parse
You're seeing just the function
parse
, go back to Yson.Parser module for more information.
Parses the response.
The first parameter is a Yson.GraphQL.Schema
resolvers tree, the second one is the response payload, the third one is an optional recasing option.
Example
parse(ASchema.resolvers(), %{responseData: "value"})
The optional third parameter can be one of the following:
:snake
converts payload keys to snake case before parsing:camel
converts payload keys to camel case before parsing:no_case
does not convert payload keys before parsing