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
When trying to create a new record within conveyor, if selecting a related record through the built-in dropdown feature, a 400 error occurs if the name of the field doesn't exactly correspond to the list that needs to be queried.
For example, if there's a relation between a record "example" and "platform_area_type," but the field is named "area_type" in "example," (the model works fine with this implementation) the dropdown will parse the list of "area_type" as "area_type_list" rather than "platform_area_type_list," the actual list that needs to be queried.
The query works as expected in GraphiQL once "area_type" is changed to "platform_area_type."
The text was updated successfully, but these errors were encountered:
It looks like the modelName argument is just the name of the field, so the query looks for values based on ${fieldName}_list. We would want to change it to something like this instead:
When trying to create a new record within conveyor, if selecting a related record through the built-in dropdown feature, a 400 error occurs if the name of the field doesn't exactly correspond to the list that needs to be queried.
For example, if there's a relation between a record "example" and "platform_area_type," but the field is named "area_type" in "example," (the model works fine with this implementation) the dropdown will parse the list of "area_type" as "area_type_list" rather than "platform_area_type_list," the actual list that needs to be queried.
The query works as expected in GraphiQL once "area_type" is changed to "platform_area_type."
The text was updated successfully, but these errors were encountered: