Skip to content

Subscription methods with wrong return type #14

@Smolli

Description

@Smolli

Having a subscription in the schema generates a Subscription class with methods that have the wrong return type. Subscriptions have to return org.reactivestreams.Publisher<T>.

Given schema:

schema {
  subscription: Subscription
}
type Subscription {
 projectsSub: Project!
}
type Project {
  id: String!
  name: String!
}

Generated class:

public interface ProjectsSubSubscription {
    @javax.validation.constraints.NotNull
    Project projectsSub() throws Exception;
}

Expected:

public interface ProjectsSubSubscription {
    @javax.validation.constraints.NotNull
    org.reactivestreams.Publisher<Project> projectsSub() throws Exception;
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions