-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Enum.StarOrderField exposing (StarOrderField(..), decoder, toString) import Json.Decode as Decode exposing (Decoder) {-| Properties by which star connections can be ordered. - StarredAt - Allows ordering a list of stars by when they were created. -} type StarOrderField = StarredAt decoder : Decoder StarOrderField decoder = Decode.string |> Decode.andThen (\string -> case string of "STARRED_AT" -> Decode.succeed StarredAt _ -> Decode.fail ("Invalid StarOrderField type, " ++ string ++ " try re-running the @dillonkearns/elm-graphql CLI ") ) {-| Convert from the union type representating the Enum to a string that the GraphQL server will recognize. -} toString : StarOrderField -> String toString enum = case enum of StarredAt -> "STARRED_AT"