Module: Mirah::Serializers

Defined in:
lib/mirah/serializers.rb

Overview

Graphql can automatically translate most scalars from JSON into a ruby object, but there are some which cannot be done automatically, most noticably dates and times. This module provides serializers that lets us do automatic serialization.

In the future, it may also be used for the safe translation of enums. Currently, errors at this level will be caught during graphql parsing.

Defined Under Namespace

Classes: DateSerializer, DateTimeSerializer, NestedObjectSerializer, ScalarSerializer