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
Hello... I ventured down a very similar path, although to no where near the success it appears you've reached with your library.
In an effort to integrate your library into a project I'm working on, and maintain the integrity of the code I wondered what your thoughts on the following might be... (and these are contributions I'd be more than happy to make). Apologies for the list
Some sort of static set of settings where I could do things like provide an alternate attribute and a func for converting from my attribute to yours. I feel like this could allow for better integration into existing code bases and preventing a bunch of duplicate markup.
instead of [GraphQlObject] I could mark up my own entity with say GraphQlRepository... and be able to translate like so
GraphQlSettings.Register<T,RT>(RT myattributeType, Func<RT,T> converter) which would tell GraphQl.Annotations to look up my replacement, and pass it to the func Id have to specify to kick out a GraphQlObject, which would then be used as if it was never touched.
Some option to allow for including every field as a GraphQlField unless marked with some ignore.
Can you think of anyway to achieve the equivalent of the QueryRoot concept but dynamically? Eg, I'm not using entity framework and thus dont have a single "context" but could easily build list of types to include as links off the root.
The text was updated successfully, but these errors were encountered:
Hello... I ventured down a very similar path, although to no where near the success it appears you've reached with your library.
In an effort to integrate your library into a project I'm working on, and maintain the integrity of the code I wondered what your thoughts on the following might be... (and these are contributions I'd be more than happy to make). Apologies for the list
instead of [GraphQlObject] I could mark up my own entity with say GraphQlRepository... and be able to translate like so
GraphQlSettings.Register<T,RT>(RT myattributeType, Func<RT,T> converter) which would tell GraphQl.Annotations to look up my replacement, and pass it to the func Id have to specify to kick out a GraphQlObject, which would then be used as if it was never touched.
Some option to allow for including every field as a GraphQlField unless marked with some ignore.
Can you think of anyway to achieve the equivalent of the QueryRoot concept but dynamically? Eg, I'm not using entity framework and thus dont have a single "context" but could easily build list of types to include as links off the root.
The text was updated successfully, but these errors were encountered: