<p>Has anyone created a graphql server written in golang? </p>
<p>Here are couple of github pages for implementing graphql</p>
<p><a href="https://github.com/graphql-go/graphql">https://github.com/graphql-go/graphql</a>
<a href="https://github.com/neelance/graphql-go">https://github.com/neelance/graphql-go</a></p>
<p>I am wondering if anyone has used them and what there experience is like.</p>
<hr/>**评论:**<br/><br/>tv64738: <pre><p>My notes for <code>graphql-go/graphql</code> indicate it was an <code>interface{}</code> hell. <code>neelance/graphql-go</code> looked better.</p>
<p>There's also <a href="https://github.com/sevki/graphql">https://github.com/sevki/graphql</a> with introductory blog post at <a href="https://fistfulofbytes.com/graphql-and-g2sd">https://fistfulofbytes.com/graphql-and-g2sd</a> (see also GraphQL to SQL translator at <a href="https://sevki.org/g2sd">https://sevki.org/g2sd</a> )</p>
<p>Semi-related, <a href="https://github.com/rgraphql/magellan">https://github.com/rgraphql/magellan</a> is not GraphQL but is inspired by it, if you only want "something like" graphql.</p></pre>Rhelza: <pre><p>I second this,<code>graphql-go/graphql</code> is painfully verbose, i'm using <code>neelance/graphql-go</code> and it's light and easy to use.</p></pre>bloomt1990: <pre><p>Most people seem to say that neelance/graphql-go is the way to go but there is almost no documentation. </p>
<p>Which leaves me to decode it using the star wars example. Not a big deal but I just wish there was a bit more documentation.</p></pre>SeerUD: <pre><p>I'd only just commented about this the other day, and am thinking about going through the code with a friend of mine to fill it with godoc comments as a starting point. This will hopefully transition into us having a good understanding of the library, then being able to contribute more.</p></pre>Rhelza: <pre><p>good thing about open source projects is that anyone can contribute :) any of us can take some time to start with the docs things though!</p></pre>lluad: <pre><p>I used graphql-go. It's ... OK.</p>
<p>My main issue with it is that there doesn't seem to be any good approach to limiting the amount of data retrieved from a backing database based on what the query is for. This seems to be a hard problem, judging from how rare attempts to address it are.</p>
<p>It's also verbose as hell. Usable, though.</p></pre>danielfischer: <pre><p>Usually the query is for a service not a direct connection to the database, so you'd put in the limit in the service layer. </p>
<p>Perhaps a deeper example and I can help further. </p></pre>xzyfer: <pre><p>I've used <a href="https://github.com/neelance/graphql-go" rel="nofollow">https://github.com/neelance/graphql-go</a> in production and really enjoyed it.</p></pre>shark1337: <pre><p>I'm surprised none mentioned this library <a href="https://github.com/playlyfe/go-graphql" rel="nofollow">https://github.com/playlyfe/go-graphql</a> which is the fastest.</p>
<p>I find it very easy to use it and it's being used in production by playlyfe..</p></pre>bloomt1990: <pre><p>I like the look of this library...
As of right now I'm looking at this library and neelance's library</p></pre>metamatic: <pre><p>FYI, you should probably be <a href="https://medium.com/@dwalsh.sdlr/using-graphql-why-facebook-now-owns-you-3182751028c9" rel="nofollow">aware of patent issues</a> before using GraphQL.</p></pre>yami_odymel: <pre><p>GraphQL is more like designed for Node.js, I was trying to use GraphQL with Go but .. it just makes the structure more complicated.</p></pre>pescennius: <pre><p>I've used <a href="https://github.com/graphql-go/graphql" rel="nofollow">https://github.com/graphql-go/graphql</a> in production for an internal tool. The doc isn't perfect but I was able to build something relatively robust. None of the go implementations support parallel resolvers. Who ever does that first will probably become my go to. </p></pre>neofreeman: <pre><p>Have you tried dgraph I have never used but know it due to badger. I contributed to project and I think it's a nice fast key-value store if you don't need transaction system. </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传