Types

Module containing the different types.

class tangogql.schema.types.ScalarTypes(*args, **kwargs)[source]

This class makes it possible to have input and output of different types.

The ScalarTypes represents a generic scalar value that could be: Int, String, Boolean, Float, List.

static coerce_type(value)[source]

This method just return the input value.

Parameters:value – Any
Returns:Value (any)
static parse_literal(node)[source]

This method is called when the value of type ScalarTypes is used as input.

Parameters:node – value(any)
Returns:Return an exception when it is not possible to parse the value to one of the scalar types.
Return type:bool, str, int, float or Exception
static parse_value(value)[source]

This method is called when an assignment is made.

Parameters:value – value(any)
Returns:value(any)