I have a lightning-record-edit-form in a LWC. I started getting the QUERY_TOO_COMPLICATED error when loading the form. I have little to no control over the object so I can't simplify it.
My question is, can I limit the which fields are pulled into the form somehow to try and simplify the query?
My thinking is that it is trying to load all the data from the object even through I'm only using a small subset of those fields. I've tried taking everything out of the form and I'm still getting the error.
I've considered trying a lightning-record-form, but the client wants a lot of the fields to have different labels than what the fields actually have and I'm not sure if you can handle that in a record-form.
I can't really show a lot of the code due to business rules but this is all it is:
<template>
<lightning-record-edit-form record-id={objectId} object-api-name="Custom_Object__c">
<lightning-messages></lightning-messages>
</lightning-record-edit-form>
</template>
The custom object is huge and even when I don't have any fields in the form, like above, I still get the error.