lib/monday/resources/item.rb in monday_ruby-0.6.1 vs lib/monday/resources/item.rb in monday_ruby-0.6.2

- old
+ new

@@ -10,21 +10,21 @@ # # Allows filtering items using the args option. # Allows customizing the values to retrieve using the select option. # By default, ID, name and created_at fields are retrieved. def items(args: {}, select: DEFAULT_SELECT) - query = "query { items(#{Util.format_args(args)}) {#{Util.format_select(select)}}}" + query = "query { items#{Util.format_args(args)} {#{Util.format_select(select)}}}" make_request(query) end # Creates a new item. # # Allows customizing the item creation using the args option. # Allows customizing the values to retrieve using the select option. # By default, ID, name and created_at fields are retrieved. def create_item(args: {}, select: DEFAULT_SELECT) - query = "mutation { create_item(#{Util.format_args(args)}) {#{Util.format_select(select)}}}" + query = "mutation { create_item#{Util.format_args(args)} {#{Util.format_select(select)}}}" make_request(query) end # Duplicates an item.