async fetchOptionData (fieldName) { const { resource, text, value = '_id' } = this.constructor.fields[fieldName].ajaxOptions const modelName = inflection.classify(resource) const ret = await use(`App/Models/${modelName}`).fetchOptions(value, text, { _id: { $in: this[fieldName] } }, 1000) return ret }
let className = inflection.classify(resource) if (['sms'].includes(resource)) {