Safe Haskell | None |
---|---|
Language | Haskell2010 |
Helpers used in the implementations of metadataToOrdJSON
and
metadataToDTO
Synopsis
- sourcesToOrdJSONList :: Sources -> Array
- remoteSchemasToOrdJSONList :: RemoteSchemas -> Maybe Array
- backendConfigsToOrdJSON :: BackendMap BackendConfigWrapper -> Maybe Value
- inheritedRolesToOrdJSONList :: InheritedRoles -> Maybe Array
- queryCollectionsToOrdJSONList :: QueryCollections -> Maybe Array
- allowlistToOrdJSONList :: MetadataAllowlist -> Maybe Array
- apiLimitsToOrdJSON :: ApiLimit -> Maybe Value
- cronTriggersToOrdJSONList :: CronTriggers -> Maybe Array
- customTypesToOrdJSON :: CustomTypes -> Maybe Object
- endpointsToOrdJSONList :: Endpoints -> Maybe Array
- introspectionDisabledRolesToOrdJSON :: SetGraphqlIntrospectionOptions -> Maybe Value
- metricsConfigToOrdJSON :: MetricsConfig -> Maybe Value
- networkConfigToOrdJSON :: Network -> Maybe Value
- actionMetadataToOrdJSONList :: Actions -> Maybe Array
- ifNotEmpty :: (a -> Bool) -> (a -> b) -> a -> Maybe b
- listToMaybeOrdPairSort :: (Foldable t, Ord b) => Text -> (a -> Value) -> (a -> b) -> t a -> Maybe (Text, Value)
- listToMaybeArraySort :: (Foldable t, Ord b) => (a -> Value) -> (a -> b) -> t a -> Maybe Array
- listToMaybeOrdPair :: Foldable t => Text -> (a -> Value) -> t a -> Maybe (Text, Value)
- maybeSetToMaybeOrdPair :: Backend b => Maybe (ColumnValues b Value) -> Maybe (Text, Value)
- maybeDescriptionToMaybeOrdPair :: Maybe Description -> Maybe (Text, Value)
- maybeCommentToMaybeOrdPair :: Maybe Text -> Maybe (Text, Value)
- maybeAnyToMaybeOrdPair :: Text -> (a -> Value) -> Maybe a -> Maybe (Text, Value)
- commentToMaybeOrdPair :: Comment -> Maybe (Text, Value)
Documentation
sourcesToOrdJSONList :: Sources -> Array Source #
ifNotEmpty :: (a -> Bool) -> (a -> b) -> a -> Maybe b Source #
listToMaybeOrdPairSort :: (Foldable t, Ord b) => Text -> (a -> Value) -> (a -> b) -> t a -> Maybe (Text, Value) Source #
Sort list before encoding to JSON value
listToMaybeArraySort :: (Foldable t, Ord b) => (a -> Value) -> (a -> b) -> t a -> Maybe Array Source #
Sort list before encoding to JSON array (not value)
maybeSetToMaybeOrdPair :: Backend b => Maybe (ColumnValues b Value) -> Maybe (Text, Value) Source #