class Query(slothql.Object): hello = slothql.String(resolver=resolver)
class B(slothql.Object): a = slothql.Field(A) field = slothql.String()
class Query(slothql.Object): hello = slothql.String(resolver=lambda *_: 'world')
class A(slothql.Object): a = slothql.Field(lambda: A) field = slothql.String()
class A(slothql.Object): b = slothql.Field(lambda: B) field = slothql.String()
class Test(Object): def get_field(self, obj): return obj field = slothql.String(resolver=get_field)
class Test(Object): @classmethod def get_field(cls, obj): return obj field = slothql.String(resolver=get_field)
class Test(Object): @staticmethod def get_field(obj): return obj field = slothql.String(resolver=get_field)
class Test(Object): field = slothql.String(resolver=lambda obj: obj)
class A(slothql.Object): field = slothql.String()