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
raiseArgumentError,"Provide description as a positional argument or `description:` keyword, but not both (#{desc.inspect}, #{kwargs[:description].inspect})"
141
-
end
142
-
143
-
kwargs[:description]=desc
144
-
kwargs[:type]=type
145
-
elsif(resolver || mutation) && type.is_a?(String)
146
-
# The return type should be copied from the resolver, and the second positional argument is the description
147
-
kwargs[:description]=type
148
-
else
149
-
kwargs[:type]=type
150
-
end
151
-
iftype.is_a?(Class) && type < GraphQL::Schema::Mutation
152
-
raiseArgumentError,"Use `field #{name.inspect}, mutation: Mutation, ...` to provide a mutation to this field instead"
153
-
end
154
-
end
155
-
new(**kwargs, &block)
156
-
end
157
-
158
112
# Can be set with `connection: true|false` or inferred from a type name ending in `*Connection`
159
113
# @return [Boolean] if true, this field will be wrapped with Relay connection behavior
raiseArgumentError,"Provide description as a positional argument or `description:` keyword, but not both (#{desc_positional.inspect}, #{kwargs[:description].inspect})"
0 commit comments