diff --git a/gql_types.go b/gql_types.go index 7f78172..5e60051 100644 --- a/gql_types.go +++ b/gql_types.go @@ -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)