When I create two nodes and then make a relation between them as:
CREATE(cc:CreditCard{id:"5001",number:"1234567890",cvv:"888",expiry:"02/17"})
then
CREATE (e:Customer{id:"1001",name:"Abc",dob:"01/10/1982"})
and then
MATCH (e:Customer),(cc:CreditCard) CREATE(e)-[r:Shop]->(cc)
the following error comes:
This query builds a cartesian product between disconnected patterns. If a part of a query contains multiple disconnected patterns, this will build a cartesian product between all those parts. This may produce a large amount of data and slow down query processing.
While occasionally intended, it may often be possible to reformulate the query that avoids the use of this cross product, perhaps by adding a relationship between the different parts or by using OPTIONAL MATCH
Where am I going wrong?