Skip to content

Commit 78e5321

Browse files
authored
Add count fields to get bulk operation query (#61)
1 parent b5e08b6 commit 78e5321

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/graphql/shopify_graphql/get_bulk_operation.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class GetBulkOperation
1313
completedAt
1414
fileSize
1515
url
16+
objectCount
17+
rootObjectCount
1618
}
1719
}
1820
}
@@ -37,7 +39,9 @@ def parse_data(data)
3739
error_code: data.errorCode,
3840
created_at: Time.find_zone("UTC").parse(data.createdAt),
3941
completed_at: data.completedAt ? Time.find_zone("UTC").parse(data.completedAt) : nil,
40-
url: data.url
42+
url: data.url,
43+
object_count: data.objectCount,
44+
root_object_count: data.rootObjectCount,
4145
)
4246
end
4347
end

0 commit comments

Comments
 (0)