Skip to content

Commit

Permalink
Add properties to entities query
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbrunskill committed Feb 16, 2024
1 parent 6669bd0 commit a485308
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/dgraph/src/entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ query EntitiesQuery($filter: EntityFilter, $first: Int, $offset: Int, $order: En
code
alternative_names
__typename
properties {
__typename
code
type
value
}
parents {
id
name
Expand Down Expand Up @@ -125,6 +131,7 @@ mod tests {
assert_eq!(data.data[0].description, "Heparin Sodium");
assert_eq!(data.data[0].r#type, "Product");
assert_eq!(data.aggregates.unwrap().count, 1);
assert!(!data.properties.is_empty())
}

#[tokio::test]
Expand Down

0 comments on commit a485308

Please sign in to comment.