Skip to content

Feature proposal: default attributes #172

@jonathanglasmeyer

Description

@jonathanglasmeyer

Hi,
I have the following problem: For validating permission / access to resources, we need to always fetch an owner id like userId on the requested instance. This should happen without the need to explicitly require the field in a query.

So for example I'd like to be able to say { orders(userId: "12375") { id } }, which should set findOptions.attributes to ['userId', 'id']. This would allow me to a) not overfetch SQL columns and b) to not force the expose unwanted information in the response.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions