You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have an issue where I have two relationships with an action where calling setRelations passing in [] when the entity is company results in ALL companies being associated with the action. Here is some code for reference:
At first I thought it was an issue with the library, but it is working fine for relationships to other entities. Here is what I have managed to determine:
i have two relationships to company: companies, and ofInterestTo, and they both assign all entities when calling setRelations with []
no other relationship to another entity has this problem
i have another entity, Article, which also has similar relationships, and this one demonstrates the same problem
the same issue occurs calling the setCompanyOnAction graphql endpoint:
I'm at a loss as to next steps to troubleshoot and I have a massive code base so I'd like to not recreate if at all possible. Do you have any ideas on next steps you can recommend?
The text was updated successfully, but these errors were encountered:
if I remove portalPreferences from company, then the setRelations works fine.
the reason for the separate potential entity was the separation of domains, and very few companies have portal preferences. I was attempting to be smart and allowing the front end dev to save portal preferences with a companyId and they would start showing up on company queries.
This approach DOES work from all perspectives with the exception of setRelations call on a company attribute with an empty array. I would think this is a bug.. not sure where in the code it would be manifesting though.
Describe the bug
I have an issue where I have two relationships with an
action
where calling setRelations passing in[]
when the entity is company results in ALL companies being associated with the action. Here is some code for reference:The code for these two relationships are identical within the action resolver (error handling simplified for example)
At first I thought it was an issue with the library, but it is working fine for relationships to other entities. Here is what I have managed to determine:
[]
I'm at a loss as to next steps to troubleshoot and I have a massive code base so I'd like to not recreate if at all possible. Do you have any ideas on next steps you can recommend?
The text was updated successfully, but these errors were encountered: