Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type UrlFromEnv = Text
- newtype RemoteSchemaName = RemoteSchemaName {}
- data RemoteTypeCustomization = RemoteTypeCustomization {
- _rtcPrefix :: Maybe Name
- _rtcSuffix :: Maybe Name
- _rtcMapping :: HashMap Name Name
- data RemoteFieldCustomization = RemoteFieldCustomization {
- _rfcParentType :: Name
- _rfcPrefix :: Maybe Name
- _rfcSuffix :: Maybe Name
- _rfcMapping :: HashMap Name Name
- data RemoteSchemaCustomization = RemoteSchemaCustomization {}
- data ValidatedRemoteSchemaDef = ValidatedRemoteSchemaDef {}
- data RemoteSchemaCustomizer = RemoteSchemaCustomizer {
- _rscNamespaceFieldName :: Maybe Name
- _rscCustomizeTypeName :: HashMap Name Name
- _rscCustomizeFieldName :: HashMap Name (HashMap Name Name)
- identityCustomizer :: RemoteSchemaCustomizer
- remoteSchemaCustomizeTypeName :: RemoteSchemaCustomizer -> MkTypename
- remoteSchemaCustomizeFieldName :: RemoteSchemaCustomizer -> CustomizeRemoteFieldName
- hasTypeOrFieldCustomizations :: RemoteSchemaCustomizer -> Bool
- data RemoteSchemaInfo = RemoteSchemaInfo {}
- data RemoteSchemaDef = RemoteSchemaDef {}
- data AddRemoteSchemaQuery = AddRemoteSchemaQuery {}
- newtype RemoteSchemaNameQuery = RemoteSchemaNameQuery {}
- getUrlFromEnv :: (MonadIO m, MonadError QErr m) => Environment -> Text -> m (EnvRecord URI)
- validateRemoteSchemaCustomization :: MonadError QErr m => Maybe RemoteSchemaCustomization -> m ()
- validateRemoteSchemaDef :: (MonadError QErr m, MonadIO m) => Environment -> RemoteSchemaDef -> m ValidatedRemoteSchemaDef
- newtype RemoteSchemaPermissionDefinition = RemoteSchemaPermissionDefinition {
- _rspdSchema :: SchemaDocument
- data AddRemoteSchemaPermission = AddRemoteSchemaPermission {}
- data DropRemoteSchemaPermissions = DropRemoteSchemaPermissions {}
- data SessionArgumentPresetInfo
- = SessionArgumentPresetScalar
- | SessionArgumentPresetEnum (HashSet EnumValue)
- data RemoteSchemaVariable
- = SessionPresetVariable SessionVariable Name SessionArgumentPresetInfo
- | QueryVariable Variable
- | RemoteJSONValue GType Value
- data RemoteSchemaInputValueDefinition = RemoteSchemaInputValueDefinition {
- _rsitdDefinition :: InputValueDefinition
- _rsitdPresetArgument :: Maybe (Value RemoteSchemaVariable)
- newtype RemoteSchemaIntrospection = RemoteSchemaIntrospection (HashMap Name (TypeDefinition [Name] RemoteSchemaInputValueDefinition))
- getTypeName :: TypeDefinition possibleTypes inputType -> Name
- lookupType :: RemoteSchemaIntrospection -> Name -> Maybe (TypeDefinition [Name] RemoteSchemaInputValueDefinition)
- lookupObject :: RemoteSchemaIntrospection -> Name -> Maybe (ObjectTypeDefinition RemoteSchemaInputValueDefinition)
- lookupInterface :: RemoteSchemaIntrospection -> Name -> Maybe (InterfaceTypeDefinition [Name] RemoteSchemaInputValueDefinition)
- lookupScalar :: RemoteSchemaIntrospection -> Name -> Maybe ScalarTypeDefinition
- lookupUnion :: RemoteSchemaIntrospection -> Name -> Maybe UnionTypeDefinition
- lookupEnum :: RemoteSchemaIntrospection -> Name -> Maybe EnumTypeDefinition
- lookupInputObject :: RemoteSchemaIntrospection -> Name -> Maybe (InputObjectTypeDefinition RemoteSchemaInputValueDefinition)
Documentation
type UrlFromEnv = Text Source #
newtype RemoteSchemaName Source #
Remote schema identifier.
NOTE: no validation on the character set is done here; it's likely there is a bug (FIXME) where this interacts with remote relationships and some name mangling needs to happen.
Instances
data RemoteTypeCustomization Source #
RemoteTypeCustomization | |
|
Instances
data RemoteFieldCustomization Source #
RemoteFieldCustomization | |
|
Instances
data RemoteSchemaCustomization Source #
Instances
data ValidatedRemoteSchemaDef Source #
RemoteSchemaDef
after validation and baking-in of defaults in validateRemoteSchemaDef
.
Instances
data RemoteSchemaCustomizer Source #
RemoteSchemaCustomizer | |
|
Instances
data RemoteSchemaInfo Source #
RemoteSchemaDef
after the RemoteSchemaCustomizer has been generated
by fetchRemoteSchema
Instances
data RemoteSchemaDef Source #
Unvalidated remote schema config, from the user's API request
Instances
data AddRemoteSchemaQuery Source #
The payload for add_remote_schema
, and a component of Metadata
.
AddRemoteSchemaQuery | |
|
Instances
newtype RemoteSchemaNameQuery Source #
Instances
Eq RemoteSchemaNameQuery Source # | |
Defined in Hasura.RQL.Types.RemoteSchema (==) :: RemoteSchemaNameQuery -> RemoteSchemaNameQuery -> Bool # (/=) :: RemoteSchemaNameQuery -> RemoteSchemaNameQuery -> Bool # | |
Show RemoteSchemaNameQuery Source # | |
Defined in Hasura.RQL.Types.RemoteSchema showsPrec :: Int -> RemoteSchemaNameQuery -> ShowS # show :: RemoteSchemaNameQuery -> String # showList :: [RemoteSchemaNameQuery] -> ShowS # | |
FromJSON RemoteSchemaNameQuery Source # | |
Defined in Hasura.RQL.Types.RemoteSchema parseJSON :: Value -> Parser RemoteSchemaNameQuery parseJSONList :: Value -> Parser [RemoteSchemaNameQuery] | |
ToJSON RemoteSchemaNameQuery Source # | |
Defined in Hasura.RQL.Types.RemoteSchema toJSON :: RemoteSchemaNameQuery -> Value toEncoding :: RemoteSchemaNameQuery -> Encoding toJSONList :: [RemoteSchemaNameQuery] -> Value toEncodingList :: [RemoteSchemaNameQuery] -> Encoding |
getUrlFromEnv :: (MonadIO m, MonadError QErr m) => Environment -> Text -> m (EnvRecord URI) Source #
validateRemoteSchemaCustomization :: MonadError QErr m => Maybe RemoteSchemaCustomization -> m () Source #
validateRemoteSchemaDef :: (MonadError QErr m, MonadIO m) => Environment -> RemoteSchemaDef -> m ValidatedRemoteSchemaDef Source #
newtype RemoteSchemaPermissionDefinition Source #
RemoteSchemaPermissionDefinition | |
|
Instances
data AddRemoteSchemaPermission Source #
Instances
data DropRemoteSchemaPermissions Source #
Instances
data SessionArgumentPresetInfo Source #
See resolveRemoteVariable
function. This data type is used
for validation of the session variable value
SessionArgumentPresetScalar | |
SessionArgumentPresetEnum (HashSet EnumValue) |
Instances
data RemoteSchemaVariable Source #
Details required to resolve a "session variable preset" variable.
See Notes [Remote Schema Argument Presets] and [Remote Schema Permissions Architecture] for additional information.
SessionPresetVariable SessionVariable Name SessionArgumentPresetInfo | |
QueryVariable Variable | |
RemoteJSONValue GType Value |
Instances
data RemoteSchemaInputValueDefinition Source #
Extends InputValueDefinition
with an optional preset argument.
See Note [Remote Schema Argument Presets] for additional information.
RemoteSchemaInputValueDefinition | |
|
Instances
newtype RemoteSchemaIntrospection Source #
RemoteSchemaIntrospection (HashMap Name (TypeDefinition [Name] RemoteSchemaInputValueDefinition)) |
Instances
getTypeName :: TypeDefinition possibleTypes inputType -> Name Source #
Extracts the name of a given type from its definition. TODO: move this to Language.GraphQL.Draft.Syntax.
lookupType :: RemoteSchemaIntrospection -> Name -> Maybe (TypeDefinition [Name] RemoteSchemaInputValueDefinition) Source #
lookupObject :: RemoteSchemaIntrospection -> Name -> Maybe (ObjectTypeDefinition RemoteSchemaInputValueDefinition) Source #
lookupInterface :: RemoteSchemaIntrospection -> Name -> Maybe (InterfaceTypeDefinition [Name] RemoteSchemaInputValueDefinition) Source #
lookupScalar :: RemoteSchemaIntrospection -> Name -> Maybe ScalarTypeDefinition Source #
lookupUnion :: RemoteSchemaIntrospection -> Name -> Maybe UnionTypeDefinition Source #
lookupEnum :: RemoteSchemaIntrospection -> Name -> Maybe EnumTypeDefinition Source #
lookupInputObject :: RemoteSchemaIntrospection -> Name -> Maybe (InputObjectTypeDefinition RemoteSchemaInputValueDefinition) Source #