Yson.GraphQL.Api.run

You're seeing just the function run, go back to Yson.GraphQL.Api module for more information.
Link to this function

run(schema, vars, graphql_url, headers \\ [], options \\ [])

View Source

Executes the GraphQL request and returns the parsed response or an error.

Example

run(ASchema, %{var1: "value"})

A successful call will return {:ok, parsed_data}, while a failed call will return a generic error {:error, message}.