I'm trying a simple query for contacts to return all fields since this will be a general class for looking up contacts to be used in multiple areas. I tried using the new FIELDS function but keep getting an error stating
The SOQL FIELDS function is not supported with an unbounded set of fields in this API
This is the query in question and it is not an unbounded query.
Contact con = [SELECT FIELDS(ALL), (SELECT Id, AccountId, ContactId, IsActive, StartDate, EndDate, Role__c FROM AccountContactRelations) FROM Contact WHERE Id = :recordId LIMIT 1];
Has anyone else encountered this error or gotten the FIELDS(ALL) function to work?