示例#1
0
 def resolve_jobs(self, info, **args):
     return db_session.query(LagouJobModle).filter_by(
         company_id=self.company_id).slice(0, 20).all()
示例#2
0
 def resolve_news(self, info, **kwargs):
     return db_session.query(LagouNewModel).filter_by(
         company_id=self.company_id).slice(0, 20).all()
示例#3
0
 def resolve_company(self, info, **args):
     company_name = args.get('company_name')
     company_info = db_session.query(LagouComapnyModle).filter_by(
         company_name=company_name).first()
     return company_info