Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Schema parsers for native queries.
Synopsis
- defaultSelectNativeQueryObject :: forall b r m n. (MonadBuildSchema b r m n, BackendNativeQuerySelectSchema b) => NativeQueryInfo b -> Name -> Maybe Description -> SchemaT r m (Maybe (FieldParser n (AnnObjectSelectG b (RemoteRelationshipField UnpreparedValue) (UnpreparedValue b))))
- defaultSelectNativeQuery :: forall b r m n. (MonadBuildSchema b r m n, BackendNativeQuerySelectSchema b) => NativeQueryInfo b -> Name -> Nullable -> Maybe Description -> SchemaT r m (Maybe (FieldParser n (AnnSimpleSelectG b (RemoteRelationshipField UnpreparedValue) (UnpreparedValue b))))
- defaultBuildNativeQueryRootFields :: forall b r m n. (MonadBuildSchema b r m n, BackendNativeQuerySelectSchema b) => NativeQueryInfo b -> SchemaT r m (Maybe (FieldParser n (QueryDB b (RemoteRelationshipField UnpreparedValue) (UnpreparedValue b))))
Documentation
defaultSelectNativeQueryObject :: forall b r m n. (MonadBuildSchema b r m n, BackendNativeQuerySelectSchema b) => NativeQueryInfo b -> Name -> Maybe Description -> SchemaT r m (Maybe (FieldParser n (AnnObjectSelectG b (RemoteRelationshipField UnpreparedValue) (UnpreparedValue b)))) Source #
defaultSelectNativeQuery :: forall b r m n. (MonadBuildSchema b r m n, BackendNativeQuerySelectSchema b) => NativeQueryInfo b -> Name -> Nullable -> Maybe Description -> SchemaT r m (Maybe (FieldParser n (AnnSimpleSelectG b (RemoteRelationshipField UnpreparedValue) (UnpreparedValue b)))) Source #
select a native query - implementation is the same for root fields and array relationships
defaultBuildNativeQueryRootFields :: forall b r m n. (MonadBuildSchema b r m n, BackendNativeQuerySelectSchema b) => NativeQueryInfo b -> SchemaT r m (Maybe (FieldParser n (QueryDB b (RemoteRelationshipField UnpreparedValue) (UnpreparedValue b)))) Source #