The way mirage mocks out our included records isn't accurate currently.
An example: In a request for addon
, it includes some information about the relationship to company
.
The "relationship object" we get looks like
company: { id: 123 }
not
company: 123
include: ['company', 'categories']
company: {
id: 123,
name: "Add-on Company Name",
email_admin: "the_admin@companyname.com"
}
include: ['company', 'categories'],
company: 123
not the format our API sends things in ^
include: ['company', 'categories'],
includeOnlyRelationshipObject: ['company']
company: { id: 123 }