You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/graphql/schema/member/has_arguments.rb
+24-40Lines changed: 24 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -17,28 +17,28 @@ def self.extended(cls)
17
17
# @param arg_name [Symbol] The underscore-cased name of this argument, `name:` keyword also accepted
18
18
# @param type_expr The GraphQL type of this argument; `type:` keyword also accepted
19
19
# @param desc [String] Argument description, `description:` keyword also accepted
20
-
# @param required [Boolean, :nullable] if true, this argument is non-null; if false, this argument is nullable. If `:nullable`, then the argument must be provided, though it may be `null`.
21
-
# @param description [String] Positional argument also accepted
22
-
# @param type [Class, Array<Class>] Input type; positional argument also accepted
23
-
# @param name [Symbol] positional argument also accepted
24
-
# @param default_value [Object]
25
-
# @param loads [Class, Array<Class>] A GraphQL type to load for the given ID when one is present
26
-
# @param as [Symbol] Override the keyword name when passed to a method
27
-
# @param prepare [Symbol] A method to call to transform this argument's valuebefore sending it to field resolution
28
-
# @param camelize [Boolean] if true, the name will be camelized when building the schema
29
-
# @param from_resolver [Boolean] if true, a Resolver class defined this argument
30
-
# @param directives [Hash{Class => Hash}]
31
-
# @param deprecation_reason [String]
32
-
# @param comment [String] Private, used by GraphQL-Ruby when parsing GraphQL schema files
33
-
# @param ast_node [GraphQL::Language::Nodes::InputValueDefinition] Private, used by GraphQL-Ruby when parsing schema files
34
-
# @param validates [Hash, nil] Options for building validators, if any should be applied
35
-
# @param replace_null_with_default [Boolean] if `true`, incoming values of `null` will be replaced with the configured `default_value`
20
+
# @option kwargs [Boolean, :nullable] :required if true, this argument is non-null; if false, this argument is nullable. If `:nullable`, then the argument must be provided, though it may be `null`.
21
+
# @option kwargs [String] :description Positional argument also accepted
Copy file name to clipboardExpand all lines: lib/graphql/schema/member/has_fields.rb
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,6 @@ module HasFields
45
45
# @option kwargs [Boolean] :relay_node_field (Private, used by GraphQL-Ruby)
46
46
# @option kwargs [Boolean] :relay_nodes_field (Private, used by GraphQL-Ruby)
47
47
# @option kwargs [Array<:ast_node, :parent, :lookahead, :owner, :execution_errors, :graphql_name, :argument_details, Symbol>] :extras Extra arguments to be injected into the resolver for this field
48
-
49
48
# @param kwargs [Hash] Keywords for defining the field. Any not documented here will be passed to your base field class where they must be handled.
50
49
# @param definition_block [Proc] an additional block for configuring the field. Receive the field as a block param, or, if no block params are defined, then the block is `instance_eval`'d on the new {Field}.
51
50
# @yieldparam field [GraphQL::Schema::Field] The newly-created field instance
0 commit comments