[英]How to get the type names of the query in graphql
嗨,我想在graphql中获取查询的类型名称。 它不应具有标量和枚举类型。
schema {
query: Query
}
type LearningResource{
id: ID
name: String
type: String
children: [LearningResource]
}
type Query {
fetchLearningResource: LearningResource
}
当我运行fetchLearningResource
查询时,我fetchLearningResource
这里LearningResource
一样获取它的类型。 有什么办法在GraphQL中做到这一点?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.