|
1 | 1 | package graphql.schema; |
2 | 2 |
|
3 | 3 |
|
| 4 | +import graphql.Internal; |
4 | 5 | import graphql.PublicApi; |
5 | 6 | import graphql.language.InputValueDefinition; |
6 | 7 | import graphql.util.FpKit; |
@@ -48,14 +49,41 @@ public class GraphQLArgument implements GraphQLDirectiveContainer { |
48 | 49 | private final InputValueDefinition definition; |
49 | 50 | private final List<GraphQLDirective> directives; |
50 | 51 |
|
| 52 | + /** |
| 53 | + * @param name the arg name |
| 54 | + * @param description the arg description |
| 55 | + * @param type the arg type |
| 56 | + * @param defaultValue the default value |
| 57 | + * |
| 58 | + * @deprecated use the {@link #newArgument()} builder pattern instead, as this constructor will be made private in a future version. |
| 59 | + */ |
| 60 | + @Internal |
| 61 | + @Deprecated |
51 | 62 | public GraphQLArgument(String name, String description, GraphQLInputType type, Object defaultValue) { |
52 | 63 | this(name, description, type, defaultValue, null); |
53 | 64 | } |
54 | 65 |
|
| 66 | + /** |
| 67 | + * @param name the arg name |
| 68 | + * @param type the arg type |
| 69 | + * |
| 70 | + * @deprecated use the {@link #newArgument()} builder pattern instead, as this constructor will be made private in a future version. |
| 71 | + */ |
| 72 | + @Internal |
| 73 | + @Deprecated |
55 | 74 | public GraphQLArgument(String name, GraphQLInputType type) { |
56 | 75 | this(name, null, type, null, null); |
57 | 76 | } |
58 | 77 |
|
| 78 | + /** |
| 79 | + * @param name the arg name |
| 80 | + * @param description the arg description |
| 81 | + * @param type the arg type |
| 82 | + * @param defaultValue the default value |
| 83 | + * @param definition the AST definition |
| 84 | + * |
| 85 | + * @deprecated use the {@link #newArgument()} builder pattern instead, as this constructor will be made private in a future version. |
| 86 | + */ |
59 | 87 | public GraphQLArgument(String name, String description, GraphQLInputType type, Object defaultValue, InputValueDefinition definition) { |
60 | 88 | this(name, description, type, defaultValue, null, definition, Collections.emptyList()); |
61 | 89 | } |
|
0 commit comments