diff --git a/graphene/relay/connection.py b/graphene/relay/connection.py
index afe6ffb..3e2e9ad 100644
--- a/graphene/relay/connection.py
+++ b/graphene/relay/connection.py
@@ -73,7 +73,7 @@ class Connection(ObjectType):
         edge = type(edge_name, edge_bases, {})
         cls.Edge = edge
 
-        _meta.name = name
+        options['name'] = name
         _meta.node = node
         _meta.fields = OrderedDict([
             ('page_info', Field(PageInfo, name='pageInfo', required=True)),

Bug: Name of a connection is always the name of the class
```
class BranchesOnClient(relay.Connection):
    pass
```

Based on the implementation of `relay.Connection` I expect the default name to be `BranchesOnClientConnection`.

```
class BranchesOnClient(relay.Connection, name="Foo"):
    pass
```

Now I expect the type name to be `Foo`.

In fact, in both cases the name will be `BranchesOnClient`. This is because `BaseType` sets `_meta.name` to the class name if no `name` argument is passed, and no `name` argument is passed because `relay.Connection` already caught it, assigned it to `_meta`, and removed it from the `**kwargs` dict that is passed on through the ``__init_subclass_with_meta__`` chain.
diff --git a/graphene/relay/tests/test_connection.py b/graphene/relay/tests/test_connection.py
index b6a26df..3697888 100644
--- a/graphene/relay/tests/test_connection.py
+++ b/graphene/relay/tests/test_connection.py
@@ -52,6 +52,21 @@ def test_connection_inherit_abstracttype():
     assert list(fields.keys()) == ['page_info', 'edges', 'extra']
 
 
+def test_connection_name():
+    custom_name = "MyObjectCustomNameConnection"
+
+    class BaseConnection(object):
+        extra = String()
+
+    class MyObjectConnection(BaseConnection, Connection):
+
+        class Meta:
+            node = MyObject
+            name = custom_name
+
+    assert MyObjectConnection._meta.name == custom_name
+
+
 def test_edge():
     class MyObjectConnection(Connection):
 
@@ -122,9 +137,10 @@ def test_connectionfield_node_deprecated():
     field = ConnectionField(MyObject)
     with pytest.raises(Exception) as exc_info:
         field.type
-    
+
     assert "ConnectionField's now need a explicit ConnectionType for Nodes." in str(exc_info.value)
 
+
 def test_connectionfield_custom_args():
     class MyObjectConnection(Connection):
 

pip install -e .[test]
parse_log_pytest
pytest
pytest
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
coveralls==3.3.1
docopt==0.6.2
fastdiff==0.3.0
-e git+https://github.com/graphql-python/graphene.git@38db32e4f2d57f54a77879f9277ad4408792c881#egg=graphene
graphql-core==2.3.2
graphql-relay==0.4.5
idna==3.10
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
iso8601==1.1.0
mock==5.2.0
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
promise==2.3
py @ file:///opt/conda/conda-bld/py_1644396412707/work
py-cpuinfo==9.0.0
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
pytest-benchmark==3.4.1
pytest-cov==4.0.0
pytest-mock==3.6.1
pytz==2025.2
requests==2.27.1
Rx==1.6.3
six==1.17.0
snapshottest==0.6.0
termcolor==1.1.0
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tomli==1.2.3
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
urllib3==1.26.20
wasmer==1.1.0
wasmer-compiler-cranelift==1.1.0
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: graphene
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - charset-normalizer==2.0.12
      - coverage==6.2
      - coveralls==3.3.1
      - docopt==0.6.2
      - fastdiff==0.3.0
      - graphql-core==2.3.2
      - graphql-relay==0.4.5
      - idna==3.10
      - iso8601==1.1.0
      - mock==5.2.0
      - promise==2.3
      - py-cpuinfo==9.0.0
      - pytest-benchmark==3.4.1
      - pytest-cov==4.0.0
      - pytest-mock==3.6.1
      - pytz==2025.2
      - requests==2.27.1
      - rx==1.6.3
      - six==1.17.0
      - snapshottest==0.6.0
      - termcolor==1.1.0
      - tomli==1.2.3
      - urllib3==1.26.20
      - wasmer==1.1.0
      - wasmer-compiler-cranelift==1.1.0
prefix: /opt/conda/envs/graphene

graphene/relay/tests/test_connection.py::test_connection_name
graphene/relay/tests/test_connection.py::test_connection graphene/relay/tests/test_connection.py::test_connection_inherit_abstracttype graphene/relay/tests/test_connection.py::test_edge graphene/relay/tests/test_connection.py::test_edge_with_bases graphene/relay/tests/test_connection.py::test_pageinfo graphene/relay/tests/test_connection.py::test_connectionfield graphene/relay/tests/test_connection.py::test_connectionfield_node_deprecated graphene/relay/tests/test_connection.py::test_connectionfield_custom_args
graphene/relay/connection.py
graphene/relay/connection.py