@Retention(value=RUNTIME) @Target(value={TYPE_USE,METHOD,FIELD,PARAMETER}) @Documented public @interface NonNull
@Type("Starship") @Input("StarshipInput") public class Starship { private String id; @NonNull private String name; private float length; // getters/setters... }Schema generation of this would result in a stanza such as:
type Starship { id: String name: String! length: Float! } input StarshipInput { id: String name: String! length: Float! }
DefaultValue
annotation.Copyright © 2019 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.