Module
GraphQL.Client.ToGqlString
- Package
- purescript-graphql-client
- Repository
- OxfordAbstracts/purescript-graphql-client
#toGqlQueryString Source
toGqlQueryString :: forall q. GqlQueryString q => q -> String
Generate a GraphQL query from its purs representation
#toGqlQueryStringFormatted Source
toGqlQueryStringFormatted :: forall q. GqlQueryString q => q -> String
Generate a GraphQL query from its purs representation, formatted with indentation for human readability
#ToGqlQueryStringOptions Source
type ToGqlQueryStringOptions = { indentation :: Maybe Int }
#GqlQueryString Source
class GqlQueryString q where
Members
toGqlQueryStringImpl :: ToGqlQueryStringOptions -> q -> String
Instances
GqlQueryString Unit
(IsSymbol s) => GqlQueryString (Proxy s)
(HFoldlWithIndex PropToGqlArg String (Record args) String) => GqlQueryString (Args (Record args) Unit)
(HFoldlWithIndex PropToGqlArg String (Record args) String, GqlQueryString (Record body)) => GqlQueryString (Args (Record args) (Record body))
(HFoldlWithIndex PropToGqlString String (Record r) String) => GqlQueryString (Record r)
#PropToGqlString Source
data PropToGqlString
Constructors
Instances
(GqlQueryString a, IsSymbol sym, IsSymbol alias) => FoldingWithIndex PropToGqlString (Proxy sym) String (Alias (Proxy alias) a) String
(GqlQueryString a, IsSymbol sym) => FoldingWithIndex PropToGqlString (Proxy sym) String a String
#gqlQueryStringRecord Source
gqlQueryStringRecord :: forall r. ToGqlQueryStringOptions -> (HFoldlWithIndex PropToGqlString String (Record r) String => Record r -> String)
#toGqlArgString Source
toGqlArgString :: forall q. GqlArgString q => q -> String
#GqlArgString Source
class GqlArgString q where
Members
toGqlArgStringImpl :: q -> String
Instances
GqlArgString IgnoreArg
GqlArgString String
GqlArgString Int
GqlArgString Number
GqlArgString Boolean
GqlArgString Date
GqlArgString Time
GqlArgString DateTime
(GqlArgString a) => GqlArgString (Maybe a)
(GqlArgString a) => GqlArgString (Array a)
(GqlArgString argL, GqlArgString argR) => GqlArgString (OrArg argL argR)
(GqlAndArgsString (AndArgs a1 a2)) => GqlArgString (AndArgs a1 a2)
(HFoldlWithIndex PropToGqlArg String (Record r) String) => GqlArgString (Record r)
#dateString Source
dateString :: Date -> String
#timeString Source
timeString :: Time -> String
#showInt Source
showInt :: forall a. BoundedEnum a => a -> String
#removeTrailingZeros Source
removeTrailingZeros :: String -> String
Remove trailing zeros from a millisecond value.
#padMilli Source
padMilli :: Millisecond -> String
Pad an integer from a millisecond value with enough zeros so it is three
#GqlAndArgsString Source
class GqlAndArgsString q where
Members
toGqlAndArgsStringImpl :: q -> String
Instances
(GqlArgString a1, GqlAndArgsString (AndArgs a2 a3)) => GqlAndArgsString (AndArgs (Array a1) (AndArgs a2 a3))
(GqlArgString a1, GqlArgString a2) => GqlAndArgsString (AndArgs (Array a1) (Array a2))
(GqlArgString a1, GqlArgString a2) => GqlAndArgsString (AndArgs (Array a1) a2)
#PropToGqlArg Source
data PropToGqlArg
Constructors
Instances
(GqlArgString a, IsSymbol sym, IsIgnoreArg a) => FoldingWithIndex PropToGqlArg (Proxy sym) String a String
#gqlArgStringRecord Source
gqlArgStringRecord :: forall r. HFoldlWithIndex PropToGqlArg String (Record r) String => Record r -> String
#gqlArgStringRecordTopLevel Source
gqlArgStringRecordTopLevel :: forall r. HFoldlWithIndex PropToGqlArg String (Record r) String => Record r -> String
#IsIgnoreArg Source
class IsIgnoreArg a where
Members
isIgnoreArg :: a -> Boolean
Instances
IsIgnoreArg IgnoreArg
(IsIgnoreArg l, IsIgnoreArg r) => IsIgnoreArg (OrArg l r)
IsIgnoreArg a
- Modules
- Data.
GraphQL. AST - Data.
GraphQL. Parser - GraphQL.
Client. Alias - GraphQL.
Client. Args - GraphQL.
Client. BaseClients. Affjax - GraphQL.
Client. BaseClients. Apollo - GraphQL.
Client. BaseClients. Apollo. ErrorPolicy - GraphQL.
Client. BaseClients. Apollo. FetchPolicy - GraphQL.
Client. BaseClients. Urql - GraphQL.
Client. CodeGen. GetSymbols - GraphQL.
Client. CodeGen. Js - GraphQL.
Client. CodeGen. Lines - GraphQL.
Client. CodeGen. Query - GraphQL.
Client. CodeGen. Schema - GraphQL.
Client. CodeGen. Template. Enum - GraphQL.
Client. CodeGen. Template. Schema - GraphQL.
Client. CodeGen. Types - GraphQL.
Client. ID - GraphQL.
Client. Query - GraphQL.
Client. QueryReturns - GraphQL.
Client. SafeQueryName - GraphQL.
Client. Subscription - GraphQL.
Client. ToGqlString - GraphQL.
Client. Types - GraphQL.
Client. WatchQuery - GraphQL.
Hasura. ComparisonExp - GraphQL.
Hasura. Decode - GraphQL.
Hasura. Encode