Skip to content

Commit

Permalink
update name of field
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Collins authored and Chris Collins committed Jun 6, 2022
1 parent a10e60a commit 243e617
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function GlossaryRelatedEntity() {
const { entityData }: any = useEntityData();
const glossaryTermHierarchicalName = entityData?.hierarchicalName;
let fixedQueryString = `glossaryTerms:"${glossaryTermHierarchicalName}" OR fieldGlossaryTerms:"${glossaryTermHierarchicalName}" OR editedFieldGlossaryTerms:"${glossaryTermHierarchicalName}"`;
entityData?.childTerms?.relationships.forEach((term) => {
entityData?.isAChildren?.relationships.forEach((term) => {
const name = term.entity?.hierarchicalName;
fixedQueryString += `OR glossaryTerms:"${name}" OR fieldGlossaryTerms:"${name}" OR editedFieldGlossaryTerms:"${name}"`;
});
Expand Down
2 changes: 1 addition & 1 deletion datahub-web-react/src/app/entity/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export type GenericEntityProperties = {
parentContainers?: Maybe<ParentContainersResult>;
children?: Maybe<EntityRelationshipsResult>;
parentNodes?: Maybe<ParentNodesResult>;
childTerms?: Maybe<EntityRelationshipsResult>;
isAChildren?: Maybe<EntityRelationshipsResult>;
};

export type GenericEntityUpdate = {
Expand Down
2 changes: 1 addition & 1 deletion datahub-web-react/src/graphql/glossaryTerm.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ query getGlossaryTerm($urn: String!, $start: Int, $count: Int) {
}
}
}
childTerms: relationships(input: { types: ["IsA"], direction: INCOMING, start: $start, count: $count }) {
isAChildren: relationships(input: { types: ["IsA"], direction: INCOMING, start: $start, count: $count }) {
start
count
total
Expand Down

0 comments on commit 243e617

Please sign in to comment.