简体   繁体   中英

GraphQL with ASP.NET framework (and not .NET Core)

I'm relatively new to GraphQL and want to implement GraphQL to my existing ASP.NET Framework (with Entity Framework 4) application which has an MSSQL Server as the backend.

While browsing for GraphQL libraries and for their demos/examples I found out that all the .NET related examples are using the relatively new .NET Core framework in their examples. (eg https://github.com/JacekKosciesza/StarWars )

I want to know whether referring to such examples is advisable for my .NET Framework project and if there are any examples for the same ie particularly specific to .NET Framework .

You are right. There are rarely any example of GraphQL using .NET framework. To answer your question I can say that, in my case I had to use GraphQL with .NET framework since I had other project dependencies which were already written in .NET framework. I guess similarly, you may ofcourse need GraphQL implementation in .NET framework. You also asked for an example. Here is one example that I have setup in Github (GraphQL server example in .NET framework). This is a very basic example and should be simple to try out. So here is my two cents who are looking for it. https://github.com/mail4hafij/GraphQL

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM