torchbox / wagtail-grapple

A Wagtail app that makes building GraphQL endpoints a breeze!

Home Page:https://wagtail-grapple.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Irrelevance fields Appear for Rendition (they are Image specific fields)

engAmirEng opened this issue · comments

Fields like title,focal_point_x,focal_point_y,focal_point_width,focal_point_height,file_hash,collection,tags are Image specific but they appear for Rendition type and obviously cause error
they are coming from BaseImageObjectType that it's main purpose appears to be base class for both Image and Rendition due to this:

class ImageRenditionObjectType(DjangoObjectType, BaseImageObjectType):

class ImageObjectType(DjangoObjectType, BaseImageObjectType):

What specific errors are you getting?

Just try to query these fields on the rendition type, they simply can not be resolved