-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Union.PushAllowanceActor exposing (Fragments, fragments, maybeFragments) import Github.InputObject import Github.Interface import Github.Object import Github.Scalar import Github.ScalarCodecs import Github.Union import Graphql.Internal.Builder.Argument as Argument exposing (Argument) import Graphql.Internal.Builder.Object as Object import Graphql.Internal.Encode as Encode exposing (Value) import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) import Graphql.OptionalArgument exposing (OptionalArgument(..)) import Graphql.SelectionSet exposing (FragmentSelectionSet(..), SelectionSet(..)) import Json.Decode as Decode type alias Fragments decodesTo = { onUser : SelectionSet decodesTo Github.Object.User , onTeam : SelectionSet decodesTo Github.Object.Team } {-| Build up a selection for this Union by passing in a Fragments record. -} fragments : Fragments decodesTo -> SelectionSet decodesTo Github.Union.PushAllowanceActor fragments selections = Object.exhuastiveFragmentSelection [ Object.buildFragment "User" selections.onUser , Object.buildFragment "Team" selections.onTeam ] {-| Can be used to create a non-exhuastive set of fragments by using the record update syntax to add `SelectionSet`s for the types you want to handle. -} maybeFragments : Fragments (Maybe decodesTo) maybeFragments = { onUser = Graphql.SelectionSet.empty |> Graphql.SelectionSet.map (\_ -> Nothing) , onTeam = Graphql.SelectionSet.empty |> Graphql.SelectionSet.map (\_ -> Nothing) }