# currently, this will never be called :(
def resolve_ships(root, info):
return [ShipModel()]
class Query(ObjectType):
ships = DjangoConnectionField(Ship, resolver=resolve_ships)
I also fixed some warnings and running the tests now treats warnings as errors. But I really only care about c127aec75b33617b8eb10c84fb0733654ce70bf3 here 😄
This fixes a bug in that
DjangoConnectionField
doesn't call itsresolver
function despite it being documented in the Graphene docs: "Resolvers outside the class".I also fixed some warnings and running the tests now treats warnings as errors. But I really only care about c127aec75b33617b8eb10c84fb0733654ce70bf3 here 😄