@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Subscription
public class CharacterService {
@Subscription
@Description("Get stock quote changes as they happen")
public Publisher <Stock > getStockQuote(String stockCode) {
//...
}
}
Schema generation of this would result in a stanza such as:
type Subscription {
"Get stock quote changes as they happen"
stockQuote(stockCode: string): [Stock]
}
public abstract String value
Copyright © 2018–2022. All rights reserved.