Skip to content

Commit 5cb9b73

Browse files
committed
Add docs
1 parent 54bb4dc commit 5cb9b73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/graphql/schema/argument.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class Argument
2525
# @param required [Boolean] if true, this argument is non-null; if false, this argument is nullable
2626
# @param description [String]
2727
# @param default_value [Object]
28+
# @param as [Symbol] Override the keyword name when passed to a method
29+
# @param prepare [Symbol] A method to call to tranform this argument's valuebefore sending it to field resolution
2830
# @param camelize [Boolean] if true, the name will be camelized when building the schema
2931
def initialize(arg_name, type_expr, desc = nil, required:, description: nil, default_value: NO_DEFAULT, as: nil, camelize: true, prepare: nil, owner:, &definition_block)
3032
@name = camelize ? Member::BuildType.camelize(arg_name.to_s) : arg_name.to_s

0 commit comments

Comments
 (0)