Code Monkey home page Code Monkey logo

Comments (5)

cajuncoding avatar cajuncoding commented on May 18, 2024

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.

ZedZipDev avatar ZedZipDev commented on May 18, 2024

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.

cajuncoding avatar cajuncoding commented on May 18, 2024

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.

ZedZipDev avatar ZedZipDev commented on May 18, 2024

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:

  1. GraphQL.PreProcessingExtension
  2. GraphQL.RepoDb.SqlServer
    ?

from graphql.repodb.

cajuncoding avatar cajuncoding commented on May 18, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.