Is the Object interface useful?
I can see that the Object
interface is used in the Team
and AuditLog
types. But it's so generic that it doesn't really provide any value.
If we want to be able to query a related type on an audit log or team, we would probably need a union type like union TeamObject = Organisation | Journal | Manuscript
then you can do a query like
{
auditLog(since: "1h") {
created
object {
... on Journal { journalTitle }
... on Manuscript { meta { title } }
}
}
}
Maybe this is thinking too far ahead. But either way I'd be in favour of removing the Object
interface unless there's some other reason for it that I'm not seeing.