Hi @lastmatador,
The Python automatically fetches default projections for you. You have to manually specify the projections you want to load with the Javascript API. You can use the default projections from the schema as follows:
const entityType = 'Task'
const projection = session.schemas.find(
(schema) => schema.id === entityType
).default_projections;
const response = await session.query(`select ${projection.join(',')} from ${entityType} limit 1`);
console.log(response);
The schema also has a list of properties for the entity type, so you could use that list to extract all the property names if you wanted to load _everything_ instead of just the default ones.
I hope this helps!