code: def connection_from_list(data, args=None, **kwargs):
      '''
      A simple function that accepts an array and connection arguments, and returns
      a connection object for use in GraphQL. It uses array offsets as pagination,
      so pagination will only work if the array is static.
      '''
      _len = len(data)
      return connection_from_list_slice(
          data,
          args,
          slice_start=0,
          list_length=_len,
          list_slice_length=_len,
          **kwargs
      f connection_from_list(data, args=None, **kwargs):
      '''
      A simple function that accepts an array and connection arguments, and returns
      a connection object for use in GraphQL. It uses array offsets as pagination,
      so pagination will only work if the array is static.
      '''
      _len = len(data)
      return connection_from_list_slice(
          data,
          args,
          slice_start=0,
          list_length=_len,
          list_slice_length=_len,
          **kwargs
      )
docs: A simple function that accepts an array and connection arguments, and returns
      a connection object for use in GraphQL. It uses array offsets as pagination,
      so pagination will only work if the array is static.