Skip to content

Skipping Transformer #24

Closed
Closed
@rolfnl

Description

@rolfnl

Perhaps a config setting to disable the use of Fractal or at least a check inside the morph method (Response) or check inside transformableResponse method for example to see if getTransformers returns empty (to skip the rest of the transform actions.

I'm playing with Fractal for example but not transforming Eloquent models because the data being used can come from different sources, so I sort of normalise the result. Then I can't use the Dingo API::transform setters properly. I tried to hack some more generic setter but didn't like it so far (so for I sent already transformed results as response).

You know what I mean? (sorry bit in a hurry but can elaborate)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions