See image. I want to exclude this field “oldMetaData” from being returned when I access the route “/api/brackets”.
Unfortunately I have spent an hour on this and have not figured out how to do this. Current solutions:
- Write a filter that does this. (*I haven’t been able to find the right one)
- Do something with lifecycles (not sure what lifecycles are, or how to implement this)
- /api/brackets?fields[0]=id&fields[1]=isPublic&fields[2]=name&fields[3]=isComponent&fields[4]=roofType&fields[5]=imageUrl&fields[6]=snow&fields[7]=solarRails&fields[8]=solarPv&fields[9]=utility&fields[10]=oldId&fields[11]=product&fields[12]=ef_tests&fields[13]=ef_profiles&fields[14]=oldEfProfiles&fields[15]=oldProduct&fields[16]=systems_imp&fields[17]=roofs&fields[18]=imp_tests
3a. This doesn’t work… it breaks after [10], but if I stop at [10] then it works.
Any suggestions would be super welcome!
This topic has been created from a Discord post (1265055895881121855) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord