Programiranje @ Slo-Tech http://slo-tech.com/forum/12/rsssl-si Wed, 04 Jun 2025 05:30:43 +020015C#, graphql, hotchocolate, layered architecturehttp://slo-tech.com/forum/t842437#crtadetroithttp://slo-tech.com/forum/t842437#crtahttp://slo-tech.com/forum/t842437#crtaTue, 03 Jun 2025 20:29:19 +0200 borim se z graphql, c#, hotcholate library in clean architecture "pristopom".

Zanima me če je kdo kaj takega že delal in kako se je lotil implementacije dataloaderjev v layered arhitekturi? Kakršenkoli info bo super.
Isto velja za selection (IResolverContext, QueryContext, etc), recimo primer

   public Task<SomeModel?> GetSomeModelByPathIdAsync(
            string pathId,
            IResolverContext context,
            CancellationToken cancellationToken = default)
        {
            return _someLoader.LoadAsync(slugPath, context, cancellationToken);
        } 


tldr; ne glede na to kakšen query pošljem se mi resolva v selector samo za Id polje...

Vem nepovezano ampak je premalo znanja da bi znal sploh postavit lepo vprašanje. Any help appreciated ]]>
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<rss version="2.0">
<channel>
<title>Programiranje @ Slo-Tech</title>
<link>http://slo-tech.com/forum/12/rss</link>
<language>sl-si</language>
<pubDate>Wed, 04 Jun 2025 05:30:43 +0200</pubDate>
<ttl>15</ttl>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://slo-tech.com/forum/12/rss" type="application/rss+xml"/>
<item>
<title>C#, graphql, hotchocolate, layered architecture</title>
<link>http://slo-tech.com/forum/t842437#crta</link>
<author>detroit</author>
<comments>http://slo-tech.com/forum/t842437#crta</comments>
<guid>http://slo-tech.com/forum/t842437#crta</guid>
<pubDate>Tue, 03 Jun 2025 20:29:19 +0200</pubDate>
<description>
<![CDATA[ &#x17D;ivjo,<br /> borim se z graphql, c#, hotcholate library in clean architecture "pristopom".<br /> <br /> Zanima me &#269;e je kdo kaj takega &#382;e delal in kako se je lotil implementacije dataloaderjev v layered arhitekturi? Kakr&#x161;enkoli info bo super.<br /> Isto velja za selection (IResolverContext, QueryContext, etc), recimo primer<br /> <br /> <pre class="brush:c"> public Task&lt;SomeModel?&gt; GetSomeModelByPathIdAsync( string pathId, IResolverContext context, CancellationToken cancellationToken = default) { return _someLoader.LoadAsync(slugPath, context, cancellationToken); } </pre><br /> <br /> tldr; ne glede na to kak&#x161;en query po&#x161;ljem se mi resolva v selector samo za Id polje...<br /> <br /> Vem nepovezano ampak je premalo znanja da bi znal sploh postavit lepo vpra&#x161;anje. Any help appreciated ]]>
</description>
</item>
</channel>
</rss>