Skip to content

auth() should be resolvable from indirectly imported models #1388

@ymc9

Description

@ymc9

In V2, declarations are only resolved from directly imported schema files. This is generally fine, except for auth() - you'll need to import the schema containing User or @@auth model in every schema file that uses access policies.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions