app/src/serializers/deleteSerializer.js
const JSONAPISerializer = require('jsonapi-serializer').Serializer;
const deleteSerializer = new JSONAPISerializer('query', {
attributes: ['deleted'],
typeForAttribute(attribute) {
return attribute;
},
keyForAttribute: 'camelCase'
});
class DeleteSerializer {
static serialize(data) {
return deleteSerializer.serialize(data);
}
}
module.exports = DeleteSerializer;