Skip to content

Commit

Permalink
Add order field to GqlMetadataFieldInterface
Browse files Browse the repository at this point in the history
The order field is required to display the metadata fields in the
desired order.
  • Loading branch information
geichelberger committed Apr 2, 2024
1 parent eb9ae51 commit c53eed2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,9 @@ default String collectionId() {
return getMetadataField().getCollectionID();
}

@GraphQLField
default Integer order() {
return getMetadataField().getOrder();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -45,46 +45,6 @@ public MetadataField getMetadataField() {
return metadataField;
}

@GraphQLField
public String outputId() {
return getMetadataField().getOutputID();
}

@GraphQLField
public String inputId() {
return getMetadataField().getInputID();
}

@GraphQLField
public String label() {
return getMetadataField().getLabel();
}

@GraphQLField
public MetadataField.Type type() {
return getMetadataField().getType();
}

@GraphQLField
public boolean readOnly() {
return getMetadataField().isReadOnly();
}

@GraphQLField
public boolean required() {
return getMetadataField().isRequired();
}

@GraphQLField
public String listProvider() {
return getMetadataField().getListprovider();
}

@GraphQLField
public String collectionId() {
return getMetadataField().getCollectionID();
}

@GraphQLField
@GraphQLType(JsonFunction.class)
public Object value() {
Expand Down

0 comments on commit c53eed2

Please sign in to comment.