@mondaydotcomorg/api
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Monday GraphQL JS SDK

Introduction

The monday api SDK provides a simple way to interact with monday.com's GraphQL platform API, making it easier than ever to get started with our API. The SDK abstracts away the complex GraphQL queries, providing simple operations for the most common endpoints such as fetching board data, or creating items.

The SDK is supported in both Node.js and browser environments, and is using the graphql-request client under the hood.

Want to make more complex queries or find out more about what our API has to offer, check out monday.com's API documentation.

Installation

npm install @mondaydotcomorg/api

Important

For now, all the exported types will correspond to the 2024-04 version.

For the conviniecne of monday app developers, this CLI is included in the @mondaydotcomorg/apps-cli. If you want to use it on it’s own, you can install @mondaydotcomorg/setup-api. (you can find more about app development here monday-apps-sdk)

Usage

Using the api client

The package exports the class ApiClient which is the main entry point to the SDK. You can use it to query monday's API freestyle, or use the operations provided by the SDK.

import { ApiClient } from '@mondaydotcomorg/api';

const client = new ApiClient('<API-TOKEN>');

// or use the operations provided by the SDK
const me = await client.operations.getMeOp();

// Example how to change a text column
const changeTextColumn = await client.operations.changeColumnValueOp({
    boardId: "your_board_id",
    itemId: "your_item_id",
    columnId: "text",
    value: JSON.stringify("Hello, world!"),
});

// Example how to change a status column
const changeStatusColumn = await client.operations.changeColumnValueOp({
    boardId: "your_board_id",
    itemId: "your_item_id",
    columnId: "project_status", // replace with your column id
    value: JSON.stringify({ label: "Done" }),
});

// use the client to query monday's API freestyle WITHOUT TYPES -> Use @mondaydotcomorg/setup-api to setup typed project!
const boards = await client.query<{boards: [{ name: string }]}>(`query { boards(ids: some_id) { name } }`);

// You can also use the types provided by the sdk 
const { boards } = await client.query<{
  boards: [Board];
}>(`query { boards(ids: some_id) { name } }`);

Using the types

The package exports all the types used by the SDK, so you can use them in your code.

import { User } from '@mondaydotcomorg/api';

const user: User = {
    id: '123',
    name: 'John Doe',
    email: 'john.doe@someorg.com'
}

Readme

Keywords

Package Sidebar

Install

npm i @mondaydotcomorg/api

Weekly Downloads

334

Version

2.0.0

License

MIT

Unpacked Size

565 kB

Total Files

20

Last publish

Collaborators

  • barosen
  • aviel_hershkovitz
  • mayabarkan
  • leelakr
  • matanmaman
  • benjaminla
  • jz-dapulse
  • tomkoch
  • awallace327
  • byohay-monday
  • adirh
  • michalbel
  • apoorvparijat
  • cezaryla
  • moro256
  • saritka
  • orila
  • adi_braha
  • eyalle
  • alexjalba
  • amitmazor37
  • filip-daca-monday
  • musayedah
  • avivgi
  • idanor
  • kubakolybacz
  • chensar
  • ephraimgr
  • michaelvamonday
  • lotanyuran
  • litalw
  • yoavte
  • ramhillel
  • piotrdu-monday
  • nirfrid
  • dorbi
  • guymevorachlevy
  • gioraguatmonday
  • sandeepkmonday
  • bernardpo-monday
  • ornu-monday
  • shanmonday
  • shayo-ar
  • srdjan-monday
  • miller21
  • shirazbehar2
  • galko_monday
  • danielga-monday
  • orelco2
  • mikeynagler1990
  • yair_engel
  • romkadria
  • vasilykl
  • yanivzi
  • yotamhermes
  • noasharvit
  • morpa-monday
  • tomhousman
  • kfir_bekhavod
  • galspmonday
  • michallor
  • yuvalgr
  • omrial
  • ronavmonday
  • yahorzh
  • shaharzi
  • jakubso2749
  • dorsimm
  • idanga
  • michaelimas
  • adva-gonsh
  • urielwasyng
  • jakubmo
  • tomerzlo
  • przemyslawb
  • eviatharm
  • josephsamonday
  • leonidkr
  • moshe-samson
  • monday-grahamla
  • talsoffer
  • yuvalkahana
  • ofirnirmnd
  • nicole_kezlik
  • arnonrgo
  • dekelabe
  • erlich75
  • idofinder
  • nirarazi.monday
  • ronniemi
  • vikas-monday
  • gabika
  • nirco96
  • barakbs
  • amirdana115
  • chirayu11
  • shaikatzz
  • sergeytsibulnik
  • joshpe-monday
  • guykoren
  • saarar
  • asaf472monday
  • natanrolnik_mnd
  • barja
  • asafsw
  • samwi
  • talkor
  • yuliagoldberg
  • dviryo
  • giladsc
  • giladar-monday
  • asafro
  • talp1
  • tducasse
  • sevmonday
  • kapusj
  • avilevi
  • danielep
  • adigab
  • yosia1990
  • yonatanbi-monday
  • isabelleta
  • eladna-monday
  • admonsa
  • piotrboruc
  • benha
  • adirhaziz2
  • jr-monday
  • mohamedig
  • ronco99
  • rangr-monday
  • omerra
  • olegsh_monday
  • navele
  • maor-monday
  • dord2
  • theido
  • giladtsmonday
  • rzmnd
  • yossisaadi.monday
  • naors
  • guymarushchenko
  • idit-barak
  • mitzafon-monday
  • ericfel
  • billing-guy
  • kirilne
  • adiknafo
  • daniel-glazer
  • alexkubica_monday
  • lukasz-dudzinski
  • ibukunol
  • ak2140
  • eladdo
  • yonatanel
  • edogr1
  • doniawa
  • lihibm
  • tom-katz
  • dipro-monday
  • orier
  • eden-eitani
  • tomaszlamonday
  • jessbemonday
  • shlomito
  • tsemachli
  • tomerst
  • talshe
  • talharari
  • naorbemonday
  • liorl-monday
  • doron.brikman
  • benmamonday
  • mayais
  • igorcz
  • omergrin
  • yavgenypa
  • marcinko-monday
  • maor-barazani
  • galkl
  • gal_finger_monday
  • shayal
  • aviv_go
  • alonbrimer
  • maciej-monday
  • shoshany
  • ronov1
  • orcomonday
  • amitco
  • oded_by_monday
  • johhh_monday
  • alonschatz
  • meromco
  • jeandavid
  • dor-cohen
  • matanla
  • moriat
  • banueldo
  • andreihryhoryeu
  • raneldan
  • idanmonday
  • lironam
  • monday_dan_plusone
  • itaymndy
  • nadavav
  • harelcohen
  • liortalmonday
  • orihassid2507
  • gregra81
  • arielmonday
  • benymonday
  • talibl.monday
  • yoni-alaluf
  • neomi_shavit
  • ran-haveshush-monday
  • kamie
  • marekpe
  • ibmonday
  • gilby1
  • netta-s
  • lotemkirsh
  • asif_monday
  • anyatchernishov
  • neilmon
  • marszelun-monday
  • safaaeek
  • lukaszfiszer-monday
  • arekze-monday
  • rongabbay
  • ethans-monday
  • rankupmonday
  • omernave1
  • lahavp
  • chenbe
  • adamfloor
  • andrey-palman
  • shlomiatmonday
  • m-binygal
  • tomgr
  • adamru-monday
  • etgarmon
  • thierryguy
  • rachelika
  • dudu1982
  • rama-ron
  • alonsadan
  • hadasco
  • ilyastoliar
  • yairfe
  • nitzanezra
  • itamarte
  • mickey_monday
  • nirro.monday
  • liors619
  • yoavga
  • lueran
  • rami-monday
  • maya-assayag
  • liorla13
  • eran-cohen
  • eitante
  • ofirc-monday
  • ssddnode
  • sergeyroyt
  • alonbehaim
  • sergeybr
  • virtser
  • shaharfreidenberg
  • alexanderbarkin
  • alonsh2904
  • eilonmo
  • liorrabin
  • avifreege
  • danofir
  • shanee
  • ronipardo
  • ofirmonsingo
  • monadav
  • guygo
  • boazj
  • annaso
  • venturamd
  • shalomsteinbach
  • ronicohen123
  • mickael_first
  • jonaonmonday
  • guyasino
  • dotansh
  • bladepop
  • anatkatz
  • uri-shmueli
  • shaiet
  • roniav
  • ivankmonday
  • goralth
  • doryehuda
  • udidoron
  • mayaheilbrun
  • itaycohen
  • dorshaked
  • benpi
  • yuvalb
  • tzvico-monday
  • shahafmelamed
  • ronachmany-monday
  • noamn3k
  • itamargold
  • gal_liberman
  • dorhason
  • amit_hanoch
  • yuval-eliav
  • tootmoran
  • sergeisa
  • ozkama
  • mateuszwo
  • illyayu
  • freak4pc
  • barcohen2
  • amirbardugo
  • yuly-roberman
  • sebastian-curland-mndy
  • orrgottl
  • nirlachman
  • matanyaw2
  • igor_budi
  • eviathar
  • darmonday
  • yosefw
  • tomerfriedman
  • oronmonday
  • nik-savchenko
  • lorin-totah
  • idoyana-monday
  • etaylib
  • barakbe
  • yonil
  • tombog
  • saharb
  • oronmeller
  • navecohen
  • liran-brimer-monday
  • idohay
  • danielle.ah
  • ayelet-monday
  • yglaubach
  • tal.haramati
  • sagilinshits
  • oriba
  • liorshamian
  • danielb-bladepop
  • aviv_go_npm
  • yardenli
  • danielab
  • aviram
  • shirza
  • sagiba800
  • or-nuri-monday
  • moshik
  • liormed
  • eran.huberman
  • csaloman
  • avihayav
  • af8811
  • witold-monday
  • shirawe
  • rutikevesh
  • omermonday
  • moshe1100
  • liorke
  • ella-mi
  • christopher-nowak
  • vladmonday
  • shayelmodnay
  • rotemta
  • ohadhege
  • hadaspe
  • elisiegel
  • chezkibotwinick
  • aviel_monday
  • adarmonday
  • vitalim
  • shanibenaderetmonday
  • ofirnavara
  • laviomri
  • antonru92