accessing wixData from backend module

What does you getData() method actually return? If I was fetching an array from an external api my method would look like this:

export function getdata() {
	return fetch(`${_apiEndpoint}`, { method: 'get' })
		.then(response => response.json())
		.then(json => json);
}

My page code would use it like this:

export async function doSomethingWithData() {
	await getdata().then(data => {
		//do something with data
	});
}