Giter Club home page Giter Club logo

Comments (8)

PedroBern avatar PedroBern commented on May 23, 2024

I'm not sure, but my first hunch is:

pk

Because it is a field in the UserNode, I didn't try, but probably trying to exclude archived/verified/secondary_email would result in the same warning

id

Because of graphene.relay.Node.Field that has an id field, resulting in the same case I wrote above for pk.


Being these cases, I don't plan to fix it, but I will investigate further to see if I find other possible reasons. If you make progress on this please let me know!

from django-graphql-auth.

pors avatar pors commented on May 23, 2024

What is the reason you chose for the relay interface for users?

from django-graphql-auth.

PedroBern avatar PedroBern commented on May 23, 2024

Because of the filtering. From the docs:

(...) filtering is automatically available when implementing a relay.Node. (...)

from django-graphql-auth.

PedroBern avatar PedroBern commented on May 23, 2024

It's odd, when I try to remove the id I don't get the warning message. When I try to remove the pk I get an exception:

Exception: "pk" exists on model <class 'users.models.CustomUser'> but it's not a field.

What version are you using of django-graphql-auth and graphene?

from django-graphql-auth.

pors avatar pors commented on May 23, 2024

It's odd, when I try to remove the id I don't get the warning message. When I try to remove the pk I get an exception:

Removing how?

Exception: "pk" exists on model <class 'users.models.CustomUser'> but it's not a field.

What version are you using of django-graphql-auth and graphene?

graphene==2.1.8
graphene-django==2.9.0
django-graphql-auth==0.3.8

from django-graphql-auth.

PedroBern avatar PedroBern commented on May 23, 2024

Removing how?

I mean, adding to USER_NODE_EXCLUDE_FIELDS .

from django-graphql-auth.

pors avatar pors commented on May 23, 2024

Shall I close this? Now that we have #27 coming up?

from django-graphql-auth.

PedroBern avatar PedroBern commented on May 23, 2024

yes, I close it

from django-graphql-auth.

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.