You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/errors/gql-errors/42N0D.adoc
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@
7
7
error: syntax error or access rule violation - cannot call function from this context. The function `{ <<fun>> }` cannot be called from the current context. It can only be used `{ <<context>> }`.
8
8
9
9
== Explanation
10
-
This function cannot be called in the particular context. The function can only be used in the specified context.
10
+
This error is thrown when a function is called from a context that is not allowed for that function.
11
+
For example, if you try to call `abac.oidc.user_attribuge()` from a regular Cypher query, you will get this error, because it is not supported in user Cypher queries and can only be called from within `AUTH RULE` creation or alteration commands.
11
12
12
13
== Example scenario
13
14
For example, calling an internal security function from a user query.
0 commit comments