by 3dfan · 5y ago · 0 comments
SELECT name FROM cities WHERE population>1000000
GraphQL queries on the other hand always look like gibberish to me.Same query in Cypher (the language used by e.g. Neo4J, RedisGraph):
MATCH (n:Country) WHERE n.population > 1000000 RETURN n.nameSQL needs 48 chars:
SELECT name FROM cities WHERE population>1000000
Cypher needs 57 chars: MATCH (n:cities) WHERE n.population>1000000 RETURN n.name
I would be very hesitant to use a language that needs 19% more code to express the same thing.