You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using graphene 0.7.1 and am really liking it! Thanks!
I ran into an issue that took me quite some time to figure out. Given a DjangoNode like this:
class NetworkEntityType(DjangoNode):
class Meta:
model = NetworkEntity
only_fields = (
'id',
'type',
'short_name',
'full_name',
'website',
)
availability = graphene.String()
def resolve_availability(self, args, info):
1/0
The availability attribute comes back as null and there is no exception reported. Is this by design or accident?
It makes it very difficult to debug the resolve method -- I missed a typo for a long time because I had no error message to guide me. My error wasn't a division by zero obviously, but that detail would confuse the issue. I also get the same behavior if I use DjangoObjectType instead of DjangoNode.
The NetworkEntity model is pretty vanilla, I can provide it if you want but I don't think there are any surprises
The text was updated successfully, but these errors were encountered:
I'm using graphene 0.7.1 and am really liking it! Thanks!
I ran into an issue that took me quite some time to figure out. Given a
DjangoNode
like this:The availability attribute comes back as null and there is no exception reported. Is this by design or accident?
It makes it very difficult to debug the resolve method -- I missed a typo for a long time because I had no error message to guide me. My error wasn't a division by zero obviously, but that detail would confuse the issue. I also get the same behavior if I use
DjangoObjectType
instead ofDjangoNode
.The
NetworkEntity
model is pretty vanilla, I can provide it if you want but I don't think there are any surprisesThe text was updated successfully, but these errors were encountered: