Skip to content

Commit ac02869

Browse files
author
Kevin Kim
committed
Add result_subquery to metadata_fields
1 parent eaa2b02 commit ac02869

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

labelbox/schema/data_row.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DataRow(DbObject, Updateable, BulkDeletable):
2222
updated_at (datetime)
2323
created_at (datetime)
2424
media_attributes (dict): generated media attributes for the datarow
25-
custom_metadata (list): metadata associated with the datarow
25+
metadata_fields (list): metadata associated with the datarow
2626
2727
dataset (Relationship): `ToOne` relationship to Dataset
2828
created_by (Relationship): `ToOne` relationship to User
@@ -38,7 +38,8 @@ class DataRow(DbObject, Updateable, BulkDeletable):
3838
metadata_fields = Field.List(
3939
DataRowMetadataField,
4040
graphql_type="DataRowCustomMetadataUpsertInput!",
41-
name="metadata_fields")
41+
name="metadata_fields",
42+
result_subquery="metadataFields { schemaId name value kind }")
4243

4344
# Relationships
4445
dataset = Relationship.ToOne("Dataset")

0 commit comments

Comments
 (0)