Hello!
I would like to get more columns on my board, but I can only get the id and name, all other fields are said
Field ‘team’ doesn’t exist on type ‘Item’
I’m making a filter by date, I don’t know if it’s the most correct either.
how can i get all columns in fields ?
I’m using mondy’s Api, with javascript. I have the following code structure:
async getCelebrateOnPeriod(date: string): Promise<any> {
const { query, variables } = gql.query(
this.clientQuery.getOnCelebrationOnPeriod(
this.boardId,
date,
date,
),
);
const data = await this.mondayApi.api(query, { variables });
getOnCelebrationOnPeriod(
boardId: number,
columnId: string,
date: string,
) {
return {
operation: 'items_by_column_values',
variables: {
board_id: {
value: boardId,
required: true,
type: 'Int',
},
column_id: {
value: 'date4',
required: true,
type: 'String',
},
column_value: {
value: date,
required: true,
type: 'String',
},
},
fields: b'id', 'name', 'texto_longo'],
};
}
}