Closed balthild closed 6 years ago
@balthild Were you able to figure this out. I am looking at implementing Dataloaders to improve my query performance. Kindly share if you ever did.
@kigen It's more concerning the design of Python language. Python is duck-typing, so I could return an object for Any class, as long as the object contains those required attributes.
BTW, I'm not using graphene-sqlalchemy anymore. I've switched to MongoDB. :lol
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics referencing this issue.
Should I define custom resolvers calling
xxx_loader.load(...)
in the class which extendsSQLAlchemyObjectType
? If so, what data I should return in DataLoader'sbatch_load_fn()
? SQLAlchemy model objects orgraphene.ObjectType
objects?