Skip to content

Commit

Permalink
Remove extraneous shape in current_user example (#7355)
Browse files Browse the repository at this point in the history
Using a shape here causes a weird introspection bug where a module
called `__default` is created, and causes invalid code to be generated
by the query builder in JS.

A shape isn't really relevant here anyway, so just remove it.
  • Loading branch information
scotttrinh committed May 17, 2024
1 parent 466120c commit 5732aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/auth/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ protected resource, in this case being able to insert a ``Post``.
module default {
global current_user := (
assert_single((
select User { id, name }
select User
filter .identity = global ext::auth::ClientTokenIdentity
))
);
Expand Down

0 comments on commit 5732aca

Please sign in to comment.