i fix it with @hasInverse
type Content{
id:ID!
status: Int
reviewer_response: String
title: String
video: String
video_time: Int
Thumbnail: String
Form_values: String
Search_string: String
publish: Boolean!
createdAt: DateTime!
updated_at: DateTime
campaign: Campaign @hasInverse(field:"contents")
channel: Channel @hasInverse(field:"contents")
}
type Channel {
id: ID!
title: String!
description: String
poster: String
logo: String
categories: [String]
publish: Boolean!
createdAt: DateTime
updatedAt: DateTime
contents: [Content] @hasInverse(field:"channel")
campaigns: [Campaign]
}
and my dql query
{
me(func: type(Content)) {
uid,
Content.title,
Content.channel{
uid
title:Channel.title
publish:Channel.publish
}
}
}
how fix it with @reverse ?