graphene-python Questions

1

Solved

I am building graphQL schema using graphene and static type checking with mypy. The code for schema starts like below: from typing import Dict, List, NamedTuple, Union import graphene class Pos...
Eleanor asked 7/9, 2018 at 18:22

0

Im currently using Graphql with Django Graphene JWT. Im using django for the backend. All requests are authed by the token shown below: I have a schema that creates auth tokens for graphql that cu...
Deloris asked 21/8, 2018 at 11:12

1

My django model looks as follows: class Article(model.Model): slug = models.SlugField(db_index=True, max_length=255, unique=True) title = models.CharField(db_index=True, max_length=255) body = ...
Dominicadominical asked 9/8, 2018 at 8:58

1

Would a database like Cassandra and scheme like GraphQL work well together? Cassandra ideology is based on the idea of optimizing your queries and denormalizing data. This doesn't seem to really ...
Quaggy asked 20/2, 2017 at 5:1

1

Solved

This question has been posted as a GH issues under https://github.com/graphql-python/graphene-sqlalchemy/issues/134 but I thought I'd post it here too to tap into the SO crowd. A full working demo...
Brasilin asked 24/5, 2018 at 6:51

2

Solved

Let's say I have a model: class Employee(models.Model): first_name = models.CharField(max_length=40) last_name = models.CharField(max_length=60) salary = models.DecimalField(decimal_places=2) ...
Developer asked 3/3, 2018 at 12:53

2

Solved

I’m new with graphene and I have this: from django.contrib.auth.models import User class UserType(DjangoObjectType): class Meta: model = User Basically, using Django’s User class is giving me...
Fretwell asked 13/4, 2018 at 4:21

2

Solved

I have a Django model that looks like this (simplified of course): from django.db import models from polymorphic.models import PolymorphicModel class Tournament(models.Model): slug = models.Char...
Rogue asked 29/3, 2018 at 18:6

1

I'm currently using graphene-django v2.0 and I've absolutely no clue of how can I upload and download files like images, does anyone have an example of a query where you can download an Image and a...

0

I am having some issues trying to use enums with Django and Graphene. Even though the values of the enum are persisted in the SQLite and are retrieved properly, it keeps resulting in an error. Belo...
Putout asked 11/3, 2018 at 15:32

2

I'm using Reason-Apollo to parse a pretty nested GraphQL response from my server. I'm having trouble parsing the hairy tree of options returned from my GraphQL server (I'm using django-graphene). ...
Paxwax asked 21/2, 2018 at 11:18

2

Solved

I just started experimenting with graphene-django/GraphQL and am pretty confused about the relay library that has been brought in for graphene-django. After running through the cookbook example (im...
Arliearliene asked 6/1, 2017 at 20:57

4

Solved

I want to use graphene to create many people in one go. The document only mention the way to create one person like this: class CreatePerson(graphene.Mutation): class Input: name = graphene.Strin...
Captious asked 19/5, 2017 at 12:44

1

Solved

I am trying to perform mutation on User models declared using SQL ALCHEMY. Here is the code for my models.py file # blog/models.py from sqlalchemy import * from sqlalchemy.orm import (scoped_sess...
Donnydonnybrook asked 31/3, 2017 at 10:45

1

Solved

Presume a Django model similar to this: class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.PROTECT) name = models.CharField(max_length=255) other_alias = models.Ch...
Drilling asked 22/3, 2017 at 22:19

1

Suppose I have a model like this class Order(models.Model): STATES = [ (1, 'Initiate'), (2, "Brief"), (3, "Planning"), (4, "Price Negotiate"), (5, "Executing"), (6, "Pending"), (7, "Comple...
Simaroubaceous asked 17/11, 2016 at 11:30

© 2022 - 2024 — McMap. All rights reserved.