Skip to content

Make ImageDerivative resolver configurable to return additional properties #1120

@chasinhues

Description

@chasinhues

ImageDerivative only returns image url, width, and height.

return [
'url' => $url,
'width' => $dimensions['width'],
'height' => $dimensions['height'],
];

I would like to be able to access other properties of the entity as well, such as ID, filename, etc.

Activity

changed the title [-]Add image ID to image derivative[/-] [+]Make ImageDerivative resolver configurable to return additional properties[/+] on Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @Kingdutch@chasinhues

      Issue actions

        Make ImageDerivative resolver configurable to return additional properties · Issue #1120 · drupal-graphql/graphql