|
|
|
@ -53,12 +53,6 @@ func AddThreadFields(obj *graphql.Object) {
|
|
|
|
|
Type: GQLInterfaceThread.Type,
|
|
|
|
|
Resolve: GQLThreadParent,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
obj.AddFieldConfig("Listen", &graphql.Field{
|
|
|
|
|
Type: graphql.String,
|
|
|
|
|
Resolve: GQLThreadListen,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var GQLTypeUser = NewSingleton(func() *graphql.Object {
|
|
|
|
@ -113,6 +107,11 @@ var GQLTypeGQLThread = NewSingleton(func() *graphql.Object {
|
|
|
|
|
Resolve: GQLThreadUsers,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
gql_type_gql_thread.AddFieldConfig("Listen", &graphql.Field{
|
|
|
|
|
Type: graphql.String,
|
|
|
|
|
Resolve: GQLThreadListen,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return gql_type_gql_thread
|
|
|
|
|
}, nil)
|
|
|
|
|
|
|
|
|
|