With Neo4j 3.x, the syntax is:
CREATE INDEX ON :ShoppingCart(productID, clientID)
With Neo4j 4.x, the syntax is:
CREATE INDEX shopping_cart_index FOR (n:ShoppingCart) ON (n.productID, n.clientID)
Note: at the time of writing, only Neo4j 3.5.x is supported in the 3.x series.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…