async function insertPersonWithRelations() {
  console.log(`
    ////////////////////////////////////////////////
    //       Insert a person with relations       //
    ////////////////////////////////////////////////
  `)

  const { data: matt } = await req.post('persons', {
    firstName: 'Matt',
    lastName: 'Damon',
    age: 43,

    parent: {
      firstName: 'Kent',
      lastName: 'Damon',
      age: 70,
    },

    pets: [
      {
        name: 'Doggo',
        species: 'dog',
      },
      {
        name: 'Kat',
        species: 'cat',
      },
    ],

    movies: [
      {
        name: 'The Martian',
      },
      {
        name: 'Good Will Hunting',
      },
    ],

    children: [
      {
        firstName: 'Isabella',
        lastName: 'Damon',
        age: 13,
      },
    ],
  })

  console.dir(matt, { depth: null })
  return matt
}
This file contains a bunch of HTTP requests that use the
API defined in api.js.