POPOTO JS Custom queries

How to write custom queries in Popoto JS . For example how to run cypher query that get records from two nodes with where condition.