i want to filter the query on basis of some data instance of one attribute. How to do that?
class Query(graphene.ObjectType):
candidateInfo = graphene.List(candidate, search=graphene.String())
def resolve_candidateInfo(self, args, context, info):
query = candidate.get_query(context)
return query.get(args.get('search'))
schema= graphene.Schema(query=Query)
print(schema)
query= '''
query{
candidateInfo(search: "python")
{
candidateName
candidateEmail
...
}
}
'''
With this i am getting null in my output to this query..