function doQuery(options) {
            return models.Tag.findOne(options.data, _.omit(options, ['data']))
                .then((model) => {
                    if (!model) {
                        return Promise.reject(new common.errors.NotFoundError({
                            message: common.i18n.t('errors.api.tags.tagNotFound')
                        }));
                    }

                    return {
                        tags: [urlsForTag(model.id, model.toJSON(options), options)]
                    };
                });
        }
function doQuery(options) {
            return models.Tag.findOne(options.data, _.omit(options, ['data']))
                .then((model) => {
                    if (!model) {
                        return Promise.reject(new common.errors.NotFoundError({
                            message: common.i18n.t('errors.api.tags.tagNotFound')
                        }));
                    }

                    return {
                        tags: [urlsForTag(model.id, model.toJSON(options), options)]
                    };
                });
        }
function doQuery ( options ) { return models . Tag . findOne ( options . data , _ . omit ( options , [ 'data' ] ) ) . then ( ( model ) => { if ( ! model ) { return Promise . reject ( new common . errors . NotFoundError ( { message : common . i18n . t ( 'errors.api.tags.tagNotFound' ) } ) ) ; } return { tags : [ urlsForTag ( model . id , model . toJSON ( options ) , options ) ] } ; } ) ; }
### Model Query
Make the call to the Model layer
@param {Object} options
@returns {Object} options
### Model Query Make the call to the Model layer
Query for a tag