graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.GraphQL.Execute.RemoteJoin.Collect

Synopsis

Documentation

getRemoteJoinsQueryDB :: Backend b => QueryDB b (RemoteRelationshipField UnpreparedValue) (UnpreparedValue b) -> (QueryDB b Void (UnpreparedValue b), Maybe RemoteJoins) Source #

Collects remote joins from the a QueryDB if any, and transforms the selection to add new join fields where those occured.

Returns the transformed selection set, in which remote fields have been inserted, and for which the r type is now Void.

getRemoteJoinsMutationDB :: Backend b => MutationDB b (RemoteRelationshipField UnpreparedValue) (UnpreparedValue b) -> (MutationDB b Void (UnpreparedValue b), Maybe RemoteJoins) Source #

Collects remote joins from the a MutationDB if any, and transforms the selection to add new join fields where those occured.

Returns the transformed selection set, in which remote fields have been inserted, and for which the r type is now Void.