We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d77f3c commit cf5a106Copy full SHA for cf5a106
modules/ROOT/pages/directives/database-mapping.adoc
@@ -183,7 +183,21 @@ The following query yields a different Cypher query depending on the user JWT:
183
users {
184
name
185
}
186
-}ref::/directives/database-mapping.adoc#_declarerelationship[
+}
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
201
type User @node(label: ["$context.appId"]) {
202
name: String!
203
0 commit comments