Module

GraphQL.Client.CodeGen.Types

Package
purescript-graphql-client
Repository
OxfordAbstracts/purescript-graphql-client

#InputOptions Source

type InputOptions = { cache :: Maybe { get :: String -> Aff (Maybe Json), set :: { key :: String, val :: Json } -> Aff Unit }, customEnumCode :: { name :: String, values :: Array { gql :: String, transformed :: String } } -> String, dir :: String, enumImports :: Array String, enumValueNameTransform :: Maybe (String -> String), externalTypes :: Map String { moduleName :: String, typeName :: String }, fieldTypeOverrides :: Map String (Map String { moduleName :: String, typeName :: String }), gqlScalarsToPursTypes :: Map String String, idImport :: Maybe { moduleName :: String, typeName :: String }, isHasura :: Boolean, modulePath :: Array String, nullableOverrides :: Map String (Map String Boolean), useNewtypesForRecords :: Boolean }

#PursGql Source

type PursGql = { enums :: Array GqlEnum, mainSchemaCode :: String, moduleName :: String, symbols :: Array String }

#GqlEnum Source

type GqlEnum = { description :: Maybe String, name :: String, values :: Array String }

#GqlInput Source

type GqlInput = { moduleName :: String, schema :: String }

#FileToWrite Source

type FileToWrite = { code :: String, path :: String }

#FilesToWrite Source

type FilesToWrite = { enums :: Array FileToWrite, schemas :: Array FileToWrite, symbols :: FileToWrite }

#JsResult Source

type JsResult = Effect (Promise { argsTypeError :: String, parseError :: String, result :: FilesToWrite })