I have a Monday.com board (table). I want to add a new item (row) including the column values. Columns are of type:
- color
- timeline
- date
- hour
- text
I want to create the GraphQL API call in JavaScript on the browser.
I have a Monday.com board (table). I want to add a new item (row) including the column values. Columns are of type:
I want to create the GraphQL API call in JavaScript on the browser.
The issue is that you need to JSON encode the
column_valuesattribute value and escape it since it is within thequeryvalue.Example
The
msgfunction logs the message.The following was tested as JavaScript running in a browser. The Monday.com API supports CORS.
Some details
Per the GraphQL docs, the POST JSON structure is
In other words, the query/mutation is sent as a string. But within that string, the Monday.com
column_valuesvalue is a JSON string!