API4: Contact.Get does not work for contact subtype
contact_sub_type is stored as a "pseudo" array in the database and no results are returned if you search on Contact.Get with subtype =,IN,! etc. API3 has some code to work around this in CRM/Contact/BAO/Query::includeContactSubTypes()
which rewrites =,IN,! to LIKE and NOT and then rewrites the query parameter to contain wildcard chars %
so API3 "works".
I hacked together a version of this that works for API4 with the =
operator: https://github.com/civicrm/civicrm-core/compare/master...mattwire:civicrm-core:api4contactget