-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Field types should all implement a common interface for that type #153
Comments
Hrm, that is peculiar. I don't even know that we need the interface. All Redactor fields should be able to implement the same field, regardless of the name of the field. Note: I'm not seeing this for fields other than Redactor. What fields are you seeing unique per instance? As for a fix I'll get this turned around and post back when it's done. |
Hmmmm... Examples:
These are perhaps different cases, but noting here:
That's all i've noticed so far. |
Ah, yea, this is a mistake the link field should probably use a single type instead of one per field. This could be a bad copy based from my old Redactor implementation. So,
|
Okay, This is on |
Thanks mark! nah, 3 isn't an issue, just wanted to point everything out. If it were to be addressed, I think a common interface would be the way to go. |
Example:
I have a Redactor field
myText
.From that, I get GraphQL types, named by the field handle and field type, e.g.
MyTextRedactorFieldData
.However,
MyTextRedactorFieldData
doesn't implement a common interface (RedactorFieldData
?), which makes it hard when documenting usage for the API.I'd love to be able to say "anything that implements
RedactorFieldData
, use in this way" …but currently I cannot.This seems across the board with fields (not specific to redactor). Seems logical that CraftQL would do this automatically for every unique field type, rather than having every field type implement it.
The text was updated successfully, but these errors were encountered: