Skip to content

Commit 2a3d926

Browse files
authored
Add descriptions to the fields as well
1 parent b8ecc39 commit 2a3d926

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

graphene/relay/connection.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,22 @@ class EdgeMeta:
8888
_meta.node = node
8989
_meta.fields = OrderedDict(
9090
[
91-
("page_info", Field(PageInfo, name="pageInfo", required=True)),
92-
("edges", Field(NonNull(List(edge)))),
91+
(
92+
"page_info",
93+
Field(
94+
PageInfo,
95+
name="pageInfo",
96+
required=True,
97+
description="Pagination data for this connection.",
98+
),
99+
),
100+
(
101+
"edges",
102+
Field(
103+
NonNull(List(edge)),
104+
description="Contains the nodes in this connection.",
105+
),
106+
),
93107
]
94108
)
95109
return super(Connection, cls).__init_subclass_with_meta__(

0 commit comments

Comments
 (0)