entity api return only visible document