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/directives/custom-logic.adoc
+3-52Lines changed: 3 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -504,6 +504,8 @@ to populate fields which have not been provided within the input.
504
504
505
505
For non-required values, callbacks may return `undefined` (meaning that nothing is changed or added to the property) or `null` (meaning that the property will be removed).
506
506
507
+
The `@populatedBy` directive can only be used on scalar fields.
508
+
507
509
=== Definition
508
510
509
511
[source, graphql, indent=0]
@@ -555,7 +557,7 @@ new Neo4jGraphQL({
555
557
})
556
558
----
557
559
558
-
== Context values
560
+
=== Context values
559
561
560
562
The GraphQL context for the request is available as the third argument in a callback.
561
563
This maps to the argument pattern for GraphQL resolvers.
@@ -592,54 +594,3 @@ new Neo4jGraphQL({
592
594
----
593
595
594
596
Note that the second positional argument, in this case `_args`, has a type of `Record<string, never>`, and as such it will always be an empty object.
595
-
596
-
=== Definition
597
-
598
-
[source, graphql, indent=0]
599
-
----
600
-
enum CallbackOperation {
601
-
CREATE
602
-
UPDATE
603
-
}
604
-
605
-
"""Instructs @neo4j/graphql to invoke the specified callback function when updating or creating the properties on a node or relationship."""
0 commit comments