Skip to content

Commit 95bb90b

Browse files
authored
Merge pull request #169 from neo4j/nitpicking
Fix xrefs throughout the docs
2 parents cf5a106 + 96c6102 commit 95bb90b

File tree

11 files changed

+9
-14
lines changed

11 files changed

+9
-14
lines changed

modules/ROOT/pages/directives/autogeneration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This enables autogeneration of IDs for the field.
1515
The format of each generated ID is a UUID generated by the link:https://neo4j.com/docs/cypher-manual/current/functions/scalar/#functions-randomuuid[`randomUUID()` function].
1616
The field will not be present in input types for mutations.
1717

18-
It is recommended to use xref::/directives/indexes-and-constraints.adoc#type-definitions-constraints-unique[`@unique`] in conjunction with this to add a unique node property constraint.
18+
It is recommended to use xref::/directives/indexes-and-constraints.adoc#_unique_node_property_constraints[`@unique`] in conjunction with this to add a unique node property constraint.
1919

2020
=== Definition
2121

modules/ROOT/pages/directives/custom-logic.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ type Movie {
300300
}
301301
----
302302

303-
[[type-definitions-default-values-limit]]
304303
== `@limit`
305304

306305
Available on nodes, this directive injects values into a query such as the `limit`.

modules/ROOT/pages/directives/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The Neo4j GraphQL Library provides the following directives to be used whilst de
1414
| xref::/directives/database-mapping.adoc#_relationship[`@relationship`]
1515
| Configures xref::/types/relationships.adoc[relationships] between object types.
1616

17-
| xref::/directives/database-mapping.adoc#_relationship_properties[`@relationshipProperties`]
17+
| xref::/directives/database-mapping.adoc#_relationshipproperties[`@relationshipProperties`]
1818
a| Required to differentiate interfaces that are used for relationship properties, and otherwise.
1919

2020
| xref::/directives/database-mapping.adoc#type-definitions-node[`@node`]

modules/ROOT/pages/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For every query and mutation that is executed against this generated schema, the
2626
- Automatic generation of xref::queries-aggregations/queries.adoc[Queries] and xref::mutations/index.adoc[Mutations] for CRUD interactions.
2727
- xref::/types/index.adoc[Types], including temporal and spatial.
2828
- Support for both node and relationship properties.
29-
- Extensibility through the xref::/directives/custom-logic.adoc#_cypher[`@cypher` directive] and/or xref::/directives/custom-logic.adoc#_custom-resolvers[Custom Resolvers].
29+
- Extensibility through the xref::/directives/custom-logic.adoc#_cypher[`@cypher` directive] and/or xref::/directives/custom-logic.adoc#_customresolver[Custom Resolvers].
3030
- Extensive xref::queries-aggregations/filtering.adoc[Filtering] and xref::queries-aggregations/sorting.adoc[Sorting] options.
3131
- Options for xref::/directives/database-mapping.adoc[Database mapping] and value xref::/directives/autogeneration.adoc[Autogeneration].
3232
- xref::/queries-aggregations/pagination/index.adoc[Pagination] options.

modules/ROOT/pages/ogm/reference.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Accepts the argument:
190190
[[ogm-api-reference-model-aggregate]]
191191
=== `aggregate`
192192

193-
This method can be used to aggregate nodes, and maps to the underlying schema xref::queries-aggregations/queries.adoc#queries-aggregate[Aggregate].
193+
This method can be used to aggregate nodes, and maps to the underlying schema xref::queries-aggregations/aggregations.adoc#_aggregate_related_nodes[Aggregate].
194194

195195
==== Arguments
196196

modules/ROOT/pages/ogm/subscriptions.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ await ogm.init();
5454

5555
=== Adding a custom resolver
5656

57-
xref:custom-resolvers/[Custom resolvers] can be used for multiple reasons such as performing data manipulation and checks, or interact with third party systems.
57+
Custom resolvers can be used for multiple reasons such as performing data manipulation and checks, or interact with third party systems.
5858
In this case, you only need to create a `User` node with the `password` field set.
5959
You can do that by adding a sign-up mutation:
6060

modules/ROOT/pages/queries-aggregations/filtering.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ When querying for data, a number of operators are available for different types
88
== Equality operators
99

1010
All types can be tested for either equality.
11-
For non-equality, you *must* use the xref:/queries-aggregations/filtering.adoc#_combining_operators[`NOT`] logical operator.
11+
For non-equality, you *must* use the xref:/queries-aggregations/filtering.adoc#_logical_operators[`NOT`] logical operator.
1212
For example:
1313

1414
.Filtering all users named John
@@ -50,7 +50,7 @@ query {
5050
----
5151

5252
Spatial types use numerical filtering differently and they also have additional options.
53-
See xref:filtering.adoc#_spatial_types[Spatial types] for more information.
53+
See xref:filtering.adoc#_filtering_spatial_types[Filtering spatial types] for more information.
5454

5555
== Logical operators
5656

modules/ROOT/pages/subscriptions/events.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ subscription {
5151
}
5252
----
5353

54-
[[update]]
5554
== `UPDATE`
5655

5756
Subscriptions to `UPDATE` events listen *only* to node properties changes, not updates to other fields.
@@ -161,7 +160,7 @@ Only top-level properties, without relationships, are available and they are the
161160
[NOTE]
162161
====
163162
Irrespective of the relationship direction in the database, the `CREATE_RELATIONSHIP` event is bound to the type targeted for the subscription.
164-
Consequently, if types A and B have xref:subscriptions/events.adoc#create-non-reciprocal-relationships[non-reciprocal relationships] and a GraphQL operation creates a relationship between them (despite being already previously connected in the database), the `CREATE_RELATIONSHIP` event should only return the subscription to the type A.
163+
Consequently, if types A and B have xref:subscriptions/events.adoc#_non_reciprocal_relationships[non-reciprocal relationships] and a GraphQL operation creates a relationship between them (despite being already previously connected in the database), the `CREATE_RELATIONSHIP` event should only return the subscription to the type A.
165164
====
166165

167166
As an example, consider the following type definitions:

modules/ROOT/pages/troubleshooting.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ RETURN m
137137

138138
If you use a causal cluster or an Aura Professional instance, there is a chance that the created data is not yet present on the server which gets connected to on the next GraphQL query.
139139

140-
You can ensure that the data is available to query by passing a bookmark into your request - see xref::driver-configuration.adoc#driver-configuration-bookmarks[Specifying Neo4j Bookmarks] for more information.
141-
142140
=== What is `_emptyInput` in my update and create inputs?
143141

144142
`_emptyInput` will appear in your update and create inputs if you define a type with only auto-generated and/or relationship properties. It is a placeholder property and therefore giving it a value in neither update nor create will give it a value on the node. `_emptyInput` will be removed if you add a user-provided property.

modules/ROOT/pages/types/scalar.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Person {
2424

2525
.2+| `BigInt`
2626
| Supports up to 64 bit integers, serialized as strings in variables and in data responses.
27-
Shares the same xref::queries-aggregations/filtering.adoc#filtering-numerical-operators[Numerical operators] as the other numeric types.
27+
Shares the same xref::queries-aggregations/filtering.adoc#_numerical_operators[Numerical operators] as the other numeric types.
2828
a|
2929
[source, graphql, indent=0]
3030
----

0 commit comments

Comments
 (0)