Skip to content

Instantly share code, notes, and snippets.

{
"Cluster": "arn:aws:ecs:ap-northeast-1:111111111111:cluster/fargate-test",
"TaskARN": "arn:aws:ecs:ap-northeast-1:111111111111:task/8524307c-927a-4db5-92ad-1fcf38167324",
"Family": "sample",
"Revision": "24",
"DesiredStatus": "RUNNING",
"KnownStatus": "RUNNING",
"Containers": [
{
"DockerId": "3829de63b865a15e9bddfaf615bb1f72230f610c56602d45f689cc7695a381b4",
module Types
class BaseConnection < GraphQL::Types::Relay::BaseConnection
field :total_count, Int, null: false
def total_count
object.nodes.size
end
end
class BaseObject < GraphQL::Schema::Object
connection_type_class Types::BaseConnection