Use the fields or minified fld key to define which fields you want to be returned.
Get the first and last name from all musicians.
axios.get('jory/musician', {
params: {
jory: {
fields: ['first_name', 'last_name']
}
}
});
{info} When the
fieldsandfldare omitted the default fields set in the Jory Resource will be returned.
When only selecting a single field it may be passed as a string without the surrounding array.
Get only the first name from all musicians.
axios.get('jory/musician', {
params: {
jory: {
fields: 'first_name',
}
}
});