async function returnEarthById(id) {
    console.info(`Retrieving earth with specified id: ${id}`);
    return await Earth.findOne({
        include: {all: true, nested: true},
        where: {
            id: id
        }
    }).then((earth) => {
        return earth;
    }).catch((err) => {
        console.log(err);
        return err;
    });
}
/**
 * This method communicates with the database and retrieves the earth by the specified id.
 * @param {The id of the earth} id
 */
This method communicates with the database and retrieves the earth by the specified id.
@param {The id of the earth} id
This method communicates with the database and retrieves the earth by the specified id . @param { The id of the earth } id
async function returnEarthById(id) {
    console.info(`Retrieving earth with specified id: ${id}`);
    return await Earth.findOne({
        include: {all: true, nested: true},
        where: {
            id: id
        }
    }).then((earth) => {
        return earth;
    }).catch((err) => {
        console.log(err);
        return err;
    });
}
async function returnEarthById ( id ) { console . info ( ` ${ id } ` ) ; return await Earth . findOne ( { include : { all : true , nested : true } , where : { id : id } } ) . then ( ( earth ) => { return earth ; } ) . catch ( ( err ) => { console . log ( err ) ; return err ; } ) ; }
This method communicates with the database and retrieves the earth by the specified id.
This method communicates with the database and retrieves the earth by the specified id .