Comments (5)
Yes absolutely! They don’t have any dependencies between each other.
The demo project is merely using Azure Function as an example that serves multiple purposes.
The Azure Function proxy library only enables HotChocolate to run within the context of Azure Functions v2 & V3. Otherwise it has no affect on the execution pipeline, field middleware, or resolvers.
The RepoDB extensions work with the Hot Chocolate field middleware/resolvers within the execution pipeline to provide a simplified facade and ready-to-use mapping implementation directly for RepoDB micro-orm. It works with any deployment of Hot Chocolate (eg .Net Core Web App, Azure Functions, etc.).
I strongly recommend spending time to get a solid understanding of how HotChocolate v11 configuration/startup works.
from graphql.repodb.
Thank you, I will try to test this way. But will ask questions if have ;-)
In that case I need to use the same NuGet packages as you wrote in readme?
from graphql.repodb.
Sure, but be sure to read the documentation provided by the HotChocolate core team and the Workshop!
The difference is that GraphQL.RepoDB
makes it a lot easier to work without IQueryable
or Entity Framework dependency. And it does this inside the resolver…
So anytime you would normally inject IResolverContext
in HC workshop or docs, now with GraphQL.RepoDB
you have another option to now inject IParamsContext
which is an easier to use facade…and the library offers another helper that uses that to work more easily with RepoDB micro-orm by automatically mapping to RepoDB models, fields, sort args, etc.
All outlined in the readme examples and demo project.
If any of this isn’t clear then it will be much easier to understand once you’ve got a grasp of GraphQL & HotChocolate fundamentals :-)
from graphql.repodb.
Ok, thank you. So what NuGet packages should I use in my ASP.NET Server when I need only HC without EF and without Azure functionality ?
Is this right minimal set:
- GraphQL.PreProcessingExtension
- GraphQL.RepoDb.SqlServer
?
from graphql.repodb.
Yes… all you need to install is: GraphQL.RepoDB.SqlServer
, it’s dependencies will automatically be installled by Nuget. Again this is also outlined in the readme here..
And you will have to install RepoDB
itself…
from graphql.repodb.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql.repodb.