Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runSetCustomTypes :: (MonadError QErr m, CacheRWM m, MetadataM m) => CustomTypes -> m EncJSON
- clearCustomTypesInMetadata :: MetadataModifier
- resolveCustomTypes :: MonadError QErr m => SourceCache -> CustomTypes -> BackendMap ScalarMap -> m AnnotatedCustomTypes
- validateCustomTypeDefinitions :: forall m. MonadValidate [CustomTypeValidationError] m => SourceCache -> CustomTypes -> BackendMap ScalarMap -> m AnnotatedCustomTypes
- lookupBackendScalar :: BackendMap ScalarMap -> Name -> Maybe AnnotatedScalarType
- data CustomTypeValidationError
- = DuplicateTypeNames (HashSet Name)
- | InputObjectFieldTypeDoesNotExist InputObjectTypeName InputObjectFieldName Name
- | InputObjectDuplicateFields InputObjectTypeName (HashSet InputObjectFieldName)
- | ObjectFieldTypeDoesNotExist ObjectTypeName ObjectFieldName Name
- | ObjectDuplicateFields ObjectTypeName (HashSet Name)
- | ObjectFieldArgumentsNotAllowed ObjectTypeName ObjectFieldName
- | ObjectFieldObjectBaseType ObjectTypeName ObjectFieldName Name
- | ObjectRelationshipTableDoesNotExist ObjectTypeName RelationshipName QualifiedTable
- | ObjectRelationshipFieldDoesNotExist ObjectTypeName RelationshipName ObjectFieldName
- | ObjectRelationshipFieldListType ObjectTypeName RelationshipName ObjectFieldName
- | ObjectRelationshipColumnDoesNotExist ObjectTypeName RelationshipName QualifiedTable PGCol
- | ObjectRelationshipMultiSources ObjectTypeName
- | DuplicateEnumValues EnumTypeName (HashSet EnumValue)
- showCustomTypeValidationError :: CustomTypeValidationError -> Text
Documentation
runSetCustomTypes :: (MonadError QErr m, CacheRWM m, MetadataM m) => CustomTypes -> m EncJSON Source #
resolveCustomTypes :: MonadError QErr m => SourceCache -> CustomTypes -> BackendMap ScalarMap -> m AnnotatedCustomTypes Source #
validateCustomTypeDefinitions Source #
:: forall m. MonadValidate [CustomTypeValidationError] m | |
=> SourceCache | |
-> CustomTypes | |
-> BackendMap ScalarMap | A map that, to each backend, associates the set of all its scalars. |
-> m AnnotatedCustomTypes |
Validate the custom types and return any reused Postgres base types (as scalars).
lookupBackendScalar :: BackendMap ScalarMap -> Name -> Maybe AnnotatedScalarType Source #
data CustomTypeValidationError Source #