diff --git a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/WeaklyTypedAspectsResolver.java b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/WeaklyTypedAspectsResolver.java index 441dc6ea9f4ab..e073725c43cc1 100644 --- a/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/WeaklyTypedAspectsResolver.java +++ b/datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/WeaklyTypedAspectsResolver.java @@ -69,9 +69,7 @@ public CompletableFuture> get(DataFetchingEnvironment environmen return; } - DataMap aspectPayload = resolvedAspect.getDataMap(resolvedAspect.keySet().iterator().next()); - - result.setPayload(CODEC.mapToString(aspectPayload)); + result.setPayload(CODEC.mapToString(resolvedAspect)); result.setAspectName(aspectSpec.getName()); DataMap renderSpec = aspectSpec.getRenderSpec();