Giter VIP home page Giter VIP logo

Comments (5)

rafalp avatar rafalp commented on July 22, 2024 3

We've changed semantics for "integration", so we have Starlette integration, Flask integration, etc. ect.

As for integration with ORM, this should live in resolvers layer, and writing project that autogenerates Ariadne GraphQL API from SQLAlchemy tables may be fun project for somebody, but I feel thats out of scope for us. If you want to feed your API with data from SQLAlchemy (or any such tech), run your queries in resolvers - they are made for this purpose ;)

from ariadne.

rafalp avatar rafalp commented on July 22, 2024

Tricky question. ;)

When we say "Django/Starlette" bindings, we think primarily of boilerplate that lets you add GraphQL view/controller for query execution, playground or maybe few extra utils for pagination, mutations and such.

SQLAlchemy is DBAL/ORM. graphene-sqlalchemy makes a lot of sense here, because Graphene generates GraphQL types and schema on initialization. They can introspect your models and generate types from them. They are doing same thing in graphene-django where they introspect Django's models for same result.

In Ariadne this is different, because shape of schema is decided by developer, and library only parses it and binds python functions to it. So I don't see what we could provide here? Abstractions for connections/mutations feel like very little.

I'll label this as decision needed/question and let this hang around for a while to let people discuss this.

from ariadne.

patrys avatar patrys commented on July 22, 2024

If you only care about having access to a database (and not magically adapting the schema to contain all tables) you can take a look at how https://github.com/patrys/starlette-ariadne uses GINO.

from ariadne.

command-tab avatar command-tab commented on July 22, 2024

Ah, so "bindings" is less about data fetching, and more about integration with the Django Channels and Starlette ASGI-compatible frameworks?

EDIT: And if so, is Quart also similarly on the radar?

from ariadne.

patrys avatar patrys commented on July 22, 2024

With ASGI app merged any ASGI framework should work out of the box.

from ariadne.

Related Issues (20)

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.