graphql react filtering

JavaScript
multiple field for search and also the filter drop down was classes.filter(class => (class.title.toLowerCase().includes(args.search) || class.description.toLowerCase().includes(args.search)) && class.teach.toLowerCase() === args.teacher.toLowerCase() && ...).
Source

Also in JavaScript: