Execute Query in User Defined Functions

Hi,
Is there a way to execute neo4j Query inside User Defined Functions?
If so can we get the current neo4j session in User Defined Functions?

Neo4j Version - 3.4.4

TIA.