Skip to content

Commit 1e6d8ef

Browse files
authored
clarify what should be returned from hookFunction (#308)
1 parent c98d0ee commit 1e6d8ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/graphile-build/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Hooks are registered via a call to
2424
[`builder.hook(hookName, hookFunction)`](/graphile-build/schema-builder/#hookhookname-hookfunction).
2525

2626
Every `hookFunction` must synchronously return a value - either the value that
27-
it was passed or a derivative of it (preferably immutable, but we're not strict
28-
on that).
27+
it was passed in as the first argument or a derivative of it (preferably immutable,
28+
but we're not strict on that).
2929

3030
Hook functions for one hook by default run in the order they were registered,
3131
that is why the order of plugins is sometimes relevant.

0 commit comments

Comments
 (0)