Skip to content

Commit a0906d1

Browse files
committed
muted a link
1 parent 20190c0 commit a0906d1

File tree

3 files changed

+5
-24
lines changed

3 files changed

+5
-24
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
:description: This page describes how to use directives for custom logic.
2-
:page-aliases: type-definitions/cypher.adoc, type-definitions/default-values.adoc, ogm/examples/custom-resolvers.adoc, custom-resolvers.adoc
31
= Custom logic
2+
:page-aliases: type-definitions/cypher.adoc, type-definitions/default-values.adoc, ogm/examples/custom-resolvers.adoc, custom-resolvers.adoc
3+
:description: This page describes how to use directives for custom logic.
44

55
== `@cypher`
66

modules/ROOT/pages/directives/database-mapping.adoc

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -183,21 +183,7 @@ The following query yields a different Cypher query depending on the user JWT:
183183
users {
184184
name
185185
}
186-
}
187-
----
188-
189-
Assuming there is a user with the value `"username": "arthur"` in JWT, the Cypher query looks like:
190-
191-
[source, cypher, indent=0]
192-
----
193-
MATCH (this:arthur)
194-
RETURN this { .name } as this
195-
----
196-
197-
Similarly, context values can be passed directly:
198-
199-
[source, graphql, indent=0]
200-
----
186+
}ref::/directives/database-mapping.adoc#_declarerelationship[
201187
type User @node(label: ["$context.appId"]) {
202188
name: String!
203189
}
@@ -251,9 +237,4 @@ type UserLivesInProperties @relationshipProperties {
251237
----
252238

253239
[NOTE]
254-
The property in aliases are automatically escaped (wrapped with backticks ``), so there is no need to add escape characters around them.
255-
256-
257-
== `@declareRelationship`
258-
259-
// TODO
240+
The property in aliases are automatically escaped (wrapped with backticks ``), so there is no need to add escape characters around them.

modules/ROOT/pages/directives/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a| Required to differentiate interfaces that are used for relationship propertie
2323
| xref::/directives/database-mapping.adoc#type-definitions-alias[`@alias`]
2424
| Maps a GraphQL schema field to a Neo4j property on a node or relationship.
2525

26-
| xref::/directives/database-mapping.adoc#_declarerelationship[`@declareRelationship`]
26+
| `@declareRelationship`
2727
| Configure xref::/types/relationships.adoc[relationships] to be implemented on object types.
2828

2929
|===

0 commit comments

Comments
 (0)