Skip to content

Commit

Permalink
feat: add query filter models for gRPC API (linkedin#392)
Browse files Browse the repository at this point in the history
* feat: add query filter models

* fix

* minor fix
  • Loading branch information
ybz1013 authored Aug 5, 2024
1 parent fea297e commit b7b15d2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace com.linkedin.metadata.query

/**
* Filter for finding source/destination entity(s)
*/
record EntityQueryFilter {

/**
* dataset/azkabanJob/corpUser/etc.
*/
entityType: optional string = ""

/**
* Filter for finding an record or a collection of records
*/
filter: optional LocalRelationshipFilter
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace com.linkedin.metadata.query

/**
* Filter for relationship in query
*/
record RelationshipQueryFilter {

/**
* ownedBy/downstreamOf/etc.
*/
relationshipType: optional string = ""

/**
* Filter for finding an record or a collection of records
*/
filter: optional LocalRelationshipFilter
}

0 comments on commit b7b15d2

Please sign in to comment.