I have some Mongoose models/Schema that include id and/or type keys. If I pass these models to JSON_API.dbAdapters.Mongoose(...) and then use that to set up JSON_API.ResourceTypeRegistry it runs fine until a request comes in. Then, if I have debug logging enabled, I can see json-api:warn Errors converted to json-api Result Error: typeandid cannot be used as field names. How can I handle this situation? Perhaps there's a way I can tell json-api that these fields should be remapped/renamed somehow (e.g. type -> typeField)?
I have some Mongoose models/Schema that include
idand/ortypekeys. If I pass these models toJSON_API.dbAdapters.Mongoose(...)and then use that to set upJSON_API.ResourceTypeRegistryit runs fine until a request comes in. Then, if I have debug logging enabled, I can seejson-api:warn Errors converted to json-api Result Error:typeandidcannot be used as field names.How can I handle this situation? Perhaps there's a way I can telljson-apithat these fields should be remapped/renamed somehow (e.g.type->typeField)?