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
Schema fails at getRelatedType if table name and foreign key.
Suppose you have table name m_oraganization and primary key id
and then you have foreign key organization_id in m_discount_type
at name conversion
exports.getRelatedType = fieldName =>
getTypeFromKey(fieldName.substr(0, fieldName.length - 3));
substr strips down last three and we get Organization which actually doesn't exist.
UnhandledPromiseRejectionWarning: Error: Unknown type "Organization". Did you mean "MOrganization", "MRelation", or "MOrganizationFilter"?
Please suggest any other logic to handle related type names. Thanks !
The text was updated successfully, but these errors were encountered:
Schema fails at getRelatedType if table name and foreign key.
Suppose you have table name
m_oraganization
and primary keyid
and then you have foreign key
organization_id
inm_discount_type
at name conversion
exports.getRelatedType = fieldName =>
getTypeFromKey(fieldName.substr(0, fieldName.length - 3));
substr strips down last three and we get
Organization
which actually doesn't exist.UnhandledPromiseRejectionWarning: Error: Unknown type "Organization". Did you mean "MOrganization", "MRelation", or "MOrganizationFilter"?
Please suggest any other logic to handle related type names. Thanks !
The text was updated successfully, but these errors were encountered: