You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: morpheus-graphql-client/src/Data/Morpheus/Client.hs
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,10 @@ module Data.Morpheus.Client
7
7
defineQuery,
8
8
defineByDocument,
9
9
defineByDocumentFile,
10
+
defineByDocumentFile',
10
11
defineByIntrospection,
11
12
defineByIntrospectionFile,
13
+
defineByIntrospectionFile',
12
14
ScalarValue (..),
13
15
DecodeScalar (..),
14
16
EncodeScalar (..),
@@ -58,11 +60,19 @@ defineByDocumentFile filePath args = do
58
60
qAddDependentFile filePath
59
61
defineByDocument (L.readFile filePath) args
60
62
63
+
--| This variant exposes 'Q FilePath' enabling the use of TH to generate the 'FilePath'. For example, https://hackage.haskell.org/package/file-embed-0.0.13.0/docs/Data-FileEmbed.html#v:makeRelativeToProject can be used to handle multi package projects more reliably.
--| This variant exposes 'Q FilePath' enabling the use of TH to generate the 'FilePath'. For example, https://hackage.haskell.org/package/file-embed-0.0.13.0/docs/Data-FileEmbed.html#v:makeRelativeToProject can be used to handle multi package projects more reliably.
0 commit comments