Clauses and subclauses#1272
Conversation
|
|
||
| `ORDER BY` specifies how the output of a clause should be sorted. | ||
| It be used as a sub-clause following `RETURN` or `WITH`. | ||
| It be used as a subclause following `RETURN` or `WITH`. |
There was a problem hiding this comment.
| It be used as a subclause following `RETURN` or `WITH`. | |
| It is used as a subclause following `RETURN` or `WITH`. |
| RETURN COLLECT { | ||
| MATCH (person)-[:HAS_DOG]->(d:Dog) | ||
| RETURN d.name } AS dogNames, | ||
| avg(person.age) AS averageAge | ||
| ORDER BY dogNames |
There was a problem hiding this comment.
| RETURN COLLECT { | |
| MATCH (person)-[:HAS_DOG]->(d:Dog) | |
| RETURN d.name } AS dogNames, | |
| avg(person.age) AS averageAge | |
| ORDER BY dogNames | |
| RETURN COLLECT { | |
| MATCH (person)-[:HAS_DOG]->(d:Dog) | |
| RETURN d.name | |
| } AS dogNames, | |
| avg(person.age) AS averageAge | |
| ORDER BY dogNames |
There was a problem hiding this comment.
the ending curly was very hard to spot
| RETURN person.name AS name, | ||
| EXISTS { | ||
| MATCH (person)-[:HAS_DOG]->(:Dog) | ||
| } AS hasDog |
There was a problem hiding this comment.
| } AS hasDog | |
| } AS hasDog |
There was a problem hiding this comment.
not sure about the correct amount of spaces, but i think this should be at the same level of the E from EXISTS, letting the curly end nicely
| = Graph selection clauses | ||
| :description: Information about Cypher's graph selection clauses. | ||
|
|
||
| Cypher's contains one graph selection clause -- `USE` -- which allows you to select which graph a query, or query part, is executed against. |
There was a problem hiding this comment.
| Cypher's contains one graph selection clause -- `USE` -- which allows you to select which graph a query, or query part, is executed against. | |
| Cypher contains one graph selection clause -- `USE` -- which allows you to select which graph a query, or query part, is executed against. |
i'd say it's preference, but maybe "a" (or even "a single") instead of "one"?
| = Import clauses | ||
| :description: Information about Cypher's import clauses. | ||
|
|
||
| Cypher's contains one clause to import data -- `LOAD CSV` -- which allows you to load csv into a graph. |
There was a problem hiding this comment.
| Cypher's contains one clause to import data -- `LOAD CSV` -- which allows you to load csv into a graph. | |
| Cypher contains one clause to import data -- `LOAD CSV` -- which allows you to load csv into a graph. |
same here (a vs a single vs one)
| = Clauses | ||
|
|
||
| This section contains information on all the clauses in the Cypher query language. | ||
| This chapter contains information on all the clauses and subclauses in the Cypher query language (with the exception of the database administration commands, which are documented in the link:{neo4j-docs-base-uri}/operations-manual/current/database-administration/[Operations Manual -> Database administration], link:{neo4j-docs-base-uri}/operations-manual/current/authentication-authorization/[Authentication and authorization], and link:{neo4j-docs-base-uri}/operations-manual/current/clustering/[Clustering]). |
There was a problem hiding this comment.
style preference - i'd drop the parentheses
|
This PR includes documentation updates New pages:
Updated pages: |
No description provided.