Module
GraphQL.Client.QueryReturns
- Package
- purescript-graphql-client
- Repository
- OxfordAbstracts/purescript-graphql-client
#queryReturns Source
queryReturns :: forall schema query returns. QueryReturns schema query returns => Proxy schema -> query -> Proxy returns
Get the type that a query returns.
#QueryReturns Source
class QueryReturns schema query returns | schema query -> returns where
Members
queryReturnsImpl :: schema -> query -> returns
Instances
(QueryReturns a q t) => QueryReturns a (WithVars q vars) t
(QueryReturns a q t) => QueryReturns a (Var name q) t
(IsSymbol alias, Cons alias subSchema rest schema, QueryReturns subSchema (Args args q) returns) => QueryReturns (Record schema) (Spread (Proxy alias) args q) (SpreadRes returns)
(QueryReturns (Record schema) (Spread (Proxy alias) args q) (SpreadRes returns), Newtype newtypeSchema (Record schema)) => QueryReturns newtypeSchema (Spread (Proxy alias) args q) (SpreadRes returns)
(QueryReturns a q t) => QueryReturns (Array a) q (Array t)
(QueryReturns a q t) => QueryReturns (Maybe a) q (Maybe t)
(HMapWithIndex (PropToSchemaType schema) (Record query) (Record returns)) => QueryReturns (GqlUnion schema) (GqlUnion query) (UnionReturned returns)
(QueryReturns t q result, HMapWithIndex (ArgPropToGql params) (Record args) s, SatisifyNotNullParam (Record params) (Record args)) => QueryReturns (Record params -> t) (Args (Record args) q) result
(QueryReturns t q result, SatisifyNotNullParam (Record params) (Record ())) => QueryReturns (Record params -> t) q result
(HMapWithIndex (PropToSchemaType schema) query returns) => QueryReturns (Record schema) query returns
(Newtype newtypeSchema (Record schema), QueryReturns (Record schema) (Record query) returns) => QueryReturns newtypeSchema (Record query) returns
QueryReturns a q a
#PropToSchemaType Source
newtype PropToSchemaType :: Row Type -> Type
newtype PropToSchemaType schema
For internal use only but must be exported for other modules to compile
Instances
(IsSymbol sym, IsSymbol al, Cons al subSchema rest schema, QueryReturns subSchema val returns) => MappingWithIndex (PropToSchemaType schema) (Proxy sym) (Alias (Proxy al) val) returns
(IsSymbol sym, IsSymbol val, Cons val subSchema rest schema, QueryReturns subSchema (Proxy val) returns) => MappingWithIndex (PropToSchemaType schema) (Proxy sym) (Proxy val) returns
(IsSymbol sym, Cons sym subSchema rest schema, QueryReturns subSchema val returns) => MappingWithIndex (PropToSchemaType schema) (Proxy sym) val returns
- Modules
- Data.
GraphQL. AST - Data.
GraphQL. Parser - GraphQL.
Client. Alias - GraphQL.
Client. Alias. Dynamic - GraphQL.
Client. Args - GraphQL.
Client. BaseClients. Affjax. Internal - GraphQL.
Client. BaseClients. Affjax. Node - GraphQL.
Client. BaseClients. Affjax. Web - 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. Transform. NullableOverrides - 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. Union - GraphQL.
Client. Variable - GraphQL.
Client. Variables - GraphQL.
Client. Variables. TypeName - GraphQL.
Client. WatchQuery - GraphQL.
Hasura. Array - GraphQL.
Hasura. ComparisonExp - GraphQL.
Hasura. Decode - GraphQL.
Hasura. DecodeLiberal - GraphQL.
Hasura. Encode
Do not use this. Use
queryReturns
instead. Only exported due to compiler restrictions