Add constraint to query when schema has env attribute