Module

GraphQL.Client.CodeGen.Js

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

Schema codegen functions that are designed to be called by Javascript code

#fromNullable Source

fromNullable :: forall a. a -> Nullable a -> a

#InputOptionsJs Source

type InputOptionsJs = { cache :: Nullable { get :: String -> Promise (Nullable Json), set :: { key :: String, val :: Json } -> Promise Unit }, customEnumCode :: Nullable ({ name :: String, values :: Array String } -> String), dir :: Nullable String, enumImports :: Nullable (Array String), externalTypes :: Nullable (Object { moduleName :: String, typeName :: String }), fieldTypeOverrides :: Nullable (Object (Object { moduleName :: String, typeName :: String })), gqlScalarsToPursTypes :: Nullable (Object String), idImport :: Nullable { moduleName :: String, typeName :: String }, isHasura :: Nullable Boolean, modulePath :: Nullable (Array String), useNewtypesForRecords :: Nullable Boolean }