query($courseUUID: String) {
course(filter: { uuid: { eq: $courseUUID } }) {
course_uuid: uuid,
title,
desc: description
type -> I want to get the type of the model
}
}
How to get the type of the model from the query? Instead of having a type, single line string, field in the model, and write the model name in every record, I want to get it when querying the model.
type = course won’t work.