David Nalchevanidze
David Nalchevanidze
@tdbgamer i think problem is that version `0.20.0` accidentally introduces 'bug'/ new feature in this deprecated function. now it does not declare used input types automatically and requires that you...
generated constructor will be `WtfTESTENUM`. let me know if something else is problem. then i would need from you reproducible repo that i can checkout.
as you see i am covering it with test https://github.com/morpheusgraphql/morpheus-graphql/blob/f8470c010ee50dec8f57b25cb74f4765ccf64646/morpheus-graphql-client/test/Case/Enum/schema.gql#L10-L12 you can use your scenario and open pull request with failing test, after that i can fix it.
@tdbgamer could you try https://github.com/morpheusgraphql/morpheus-graphql/releases/tag/0.20.1 ? probably it should help
hi @tdbgamer. sorry i have to close it for now. if you provide reproducible example as Github repo you can reopen it with a link.
@smatting sorry did not got. can you give me an example?
```gql type Query { deities(q: String) : [Deity] } ``` ```hs data Deity = Deity { name :: Text , children :: [Deity] } deriving (Generic,GQLType) importGQLDocumentWithNamespace "schema.gql" rootResolver ::...
```hs data DBDeity = DBDeity { dbID :: ID, dbName :: Name } dbDeities :: IO [DBDeity] dbDeities = .... dbPlacesByVisitors :: [ID] -> IO (Map ID Place) dbPlacesByVisitors ids...
but then you loose laziness. you ask places at db even if query does not needs it. may there is an automated way how they may batched, but i don't...
> Could it by done by customizing the Monad m maybe? monad that bundles all your db requests in one request could be a solution. i am not quit familiar...