Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- runSetCustomTypes :: (MonadError QErr m, CacheRWM m, MetadataM m) => CustomTypes -> m EncJSON
- clearCustomTypesInMetadata :: MetadataModifier
- newtype ScalarParsingMap b = ScalarParsingMap (HashMap Name (ScalarWrapper b))
- resolveCustomTypes :: MonadError QErr m => SourceCache -> CustomTypes -> BackendMap ScalarParsingMap -> m AnnotatedCustomTypes
- lookupBackendScalar :: BackendMap ScalarParsingMap -> Name -> Maybe AnnotatedScalarType
Documentation
runSetCustomTypes :: (MonadError QErr m, CacheRWM m, MetadataM m) => CustomTypes -> m EncJSON Source #
newtype ScalarParsingMap b Source #
A map from GraphQL name to equivalent scalar type for a given backend.
Instances
Monoid (ScalarParsingMap b) Source # | |
Defined in Hasura.RQL.DDL.CustomTypes mempty :: ScalarParsingMap b # mappend :: ScalarParsingMap b -> ScalarParsingMap b -> ScalarParsingMap b # mconcat :: [ScalarParsingMap b] -> ScalarParsingMap b # | |
Semigroup (ScalarParsingMap b) Source # | |
Defined in Hasura.RQL.DDL.CustomTypes (<>) :: ScalarParsingMap b -> ScalarParsingMap b -> ScalarParsingMap b # sconcat :: NonEmpty (ScalarParsingMap b) -> ScalarParsingMap b # stimes :: Integral b0 => b0 -> ScalarParsingMap b -> ScalarParsingMap b # | |
Backend b => Eq (ScalarParsingMap b) Source # | |
Defined in Hasura.RQL.DDL.CustomTypes (==) :: ScalarParsingMap b -> ScalarParsingMap b -> Bool # (/=) :: ScalarParsingMap b -> ScalarParsingMap b -> Bool # |
resolveCustomTypes :: MonadError QErr m => SourceCache -> CustomTypes -> BackendMap ScalarParsingMap -> m AnnotatedCustomTypes Source #