Skip to content

Sparse fields and includes do not play well when applied together #156

@EugeneKostrikov

Description

@EugeneKostrikov

Given all references are set up correctly:
GET '/people/:id?include=pets&fields=name,pets' will apply ?fields to both "people" and "pets" resources
GET '/people/:id?include=pets&fields=name' will not include "pets" at all

There might be other edge cases that need some treatment as well

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions