Module

GraphQL.Client.CodeGen.Types

#InputOptions

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

#PursGql

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

#GqlEnum

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

#GqlInput

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

#FileToWrite

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

#FilesToWrite

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

#JsResult

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

#defaultInputOptions

Modules