Code Monkey home page Code Monkey logo

Comments (10)

jhgg avatar jhgg commented on September 13, 2024

I've created a repo here:

https://github.com/graphql-python/graphql-django-view

I'm going to start porting over the view code, fixing it up, writing tests, etc....

from graphene.

syrusakbary avatar syrusakbary commented on September 13, 2024

Hi @jhgg, I've seen that... I would had love to do it by myself but you been so fast.
Please add me to the pypi package as maintainer so I could update it.

However I think the best thing is mixing the django-graphql and the other view from graphene. And provide only one package. Probably the naming could be improved.
I would love to discuss when a new repo comes out without actually throwing the code into the community, if that makes sense :)

from graphene.

jhgg avatar jhgg commented on September 13, 2024

Right. The code was just there to get things setup. I'm probably going to end up re-writing it tomorrow. It doesn't seem to work right with graphiql/relay, and isn't properly handling errors (i.e. syntax errors).

But I just wanted to have something there for now.

from graphene.

jhgg avatar jhgg commented on September 13, 2024

I've rewritten the GraphQLView in https://github.com/graphql-python/graphql-django-view/blob/master/graphql_django_view/__init__.py

Need to finish writing tests.

from graphene.

syrusakbary avatar syrusakbary commented on September 13, 2024

Maybe is easier if you start here https://github.com/graphql-python/graphene/blob/master/tests/contrib_django/test_views.py 😉 (vars are not supported in graphene view implementation yet, so are not tested as well)

from graphene.

jhgg avatar jhgg commented on September 13, 2024

v1.0.0 has been released w/ stable API & 100% test coverage:

https://pypi.python.org/pypi/graphql-django-view/
https://github.com/graphql-python/graphql-django-view/releases/tag/v1.0.0

from graphene.

jhgg avatar jhgg commented on September 13, 2024

Also @syrusakbary I've added you as contributor & maintainer of pypi package.

from graphene.

jhgg avatar jhgg commented on September 13, 2024

PR #25 is open to replace the implementation of GraphQLView with graphql-django-view in an API backwards compatible way. ^^

from graphene.

jhgg avatar jhgg commented on September 13, 2024

Closed PR #25 in favor of #26 which will merge into 0.4.0 branch.

from graphene.

jhgg avatar jhgg commented on September 13, 2024

Fixed in 0.4.0

from graphene.

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.