Hi datahub team! A couple of quick questions: 1. I...
# getting-started
a
Hi datahub team! A couple of quick questions: 1. Is it possible to add constraints to entity fields (say, my CorpUser entity has an "email" field and I want it to be unique)? 2. Is it possible to add custom queries based on entity fields? (say, my CorpUser entity has "email" field and I want to query CorpUsers by email)? Thanks!
👋 1
b
1. You can leverage PDL's validation rule: https://linkedin.github.io/rest.li/Validation-in-Rest_li 2. Please read https://github.com/linkedin/datahub/blob/master/docs/how/search-onboarding.md and let us know if you still specific questions.
👋 1
a
Thank you for the quick help! 🙂
Hi @bumpy-keyboard-50565 What is the difference between
CorpUserEntity.pdl
and
CorpUser.pdl
? I mean what do each of these two represent? Is it the following?
CorpUserEntity.pdl
: Represents a node in graph database
CorpUser.pdl
: Represents the return type of corp user query Thanks!
b
Yup. And you'll also notice that
CorpUser.pdl
exists only in GMS not the common model folder because that's the only place it's used.
thankyou 1