title: neo4j error: Type mismatch: expected Float or Integer but was Node
body: <p>I have the below data set on neo4j</p>
  
  <pre><code>create (recipe1:recipe {name: 'recipe-1'})
  create (recipe2:recipe {name: 'recipe-2'})
  create (recipe3:recipe {name: 'recipe-3'})
  create (recipe4:recipe {name: 'recipe-4'})
  create (recipe5:recipe {name: 'recipe-5'})
  create (recipe6:recipe {name: 'recipe-6'})
  create (user1:user {name: 'user-1'})
  create (user2:user {name: 'user-2'})
  create (user3:user {name: 'user-3'})
  create (user4:user {name: 'user-4'})
  create
    (user1)-[:LIKES]-&gt;(recipe1),
    (user1)-[:LIKES]-&gt;(recipe2),
    (user1)-[:LIKES]-&gt;(recipe4),
    (user2)-[:LIKES]-&gt;(recipe4),
    (user2)-[:LIKES]-&gt;(recipe6),
    (user3)-[:LIKES]-&gt;(recipe1),
    (user3)-[:LIKES]-&gt;(recipe3),
    (user3)-[:LIKES]-&gt;(recipe6),
    (user4)-[:LIKES]-&gt;(recipe4)
  </code></pre>
  
  <p>and trying to run the below query:</p>
  
  <pre><code>match (user4:user {name: 'user-4'})-[LIKES]-&gt;recipe&lt;-[:LIKES]-slm-[:LIKES]-&gt;recommendations
  where not(user4 = slm) and not(user4-recommendations)
  return count(*) AS recommendationsWeight, 
  recommendations.name AS name
  order by recommendationsWeight DESC, name DESC
  </code></pre>
  
  <p>but I am getting the below error:</p>
  
  <pre><code>Type mismatch: expected Float or Integer but was Node (line 2, column 32 (offset: 123))
  "where not(user4 = slm) and not(user4-recommendations)"
                                  ^
  </code></pre>
  
  <p>any idea what I am doing wrong here?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>What I want to do here with <code>not(user4-recommendations)</code> is to say that any recommendations which user4 has no relationship with. For example, consider this:</p>
  
  <pre><code>match (user4:user {name: 'user-4'}), (recipe1:recipe {name: 'recipe-1'})
  create (user4)-[:DISLIKES]-&gt;(recipe1)
  </code></pre>
  
  <p>So, the result of my recommendation query should not include <code>recipe1</code> as user has interacted with it before.</p>