Answers for "Your filters contain a field ' createdAt.desc' that doesn't appear on your model definition nor it's relations""

0

Your filters contain a field ' createdAt.desc' that doesn't appear on your model definition nor it's relations"

if (_.isArray(_.get(definition, 'options.timestamps'))) {
                      definition.attributes[_.get(definition, 'options.timestamps[0]')] = {
                        type: 'timestamp',
                      };
                      definition.attributes[_.get(definition, 'options.timestamps[1]')] = {
                        type: 'timestampUpdate',
                      };
                    }                  

                    // Save all attributes (with timestamps)
                    target[model].allAttributes = _.clone(definition.attributes);
Posted by: Guest on April-11-2021

Code answers related to "Your filters contain a field ' createdAt.desc' that doesn't appear on your model definition nor it's relations""

Browse Popular Code Answers by Language