
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
This library automates the setup of a development environment for working with the Monday API using GraphQL. It's designed to help developers quickly start projects with pre-configured tools and settings.
The script gets the environment ready for graphql api development
After everyting will be set up, you can run write your queries in the queries.graphql.ts file -> run 'npm run fetch:schma' -> your types will be ready to use (as can be seen in the generated folder)
This library is intended to be installed globally, allowing you to set up any project easily. To install, open your terminal and run:
To install locally in your project:
npx @mondaydotcomorg/setup-api
With the library installed and the appropriate permissions set, you can now run the setup process in the root directory of your project. Simply execute the following command:
setup-api-monday
This command will initiate the library's setup process, automatically configuring your project environment for development with the Monday API and GraphQL.
Afterwards, there will be created 3 scripts. "fetch:schema" - Gets the monday api schema "codegen" - generates types "fetch:generate" - runs both
for now do the following to get the schema and create your first type!
npm run fetch:gen
To enhance your development experience with GraphQL, we recommend installing the GraphQL extension for Visual Studio Code. This extension provides syntax highlighting, linting, auto-complete, and more.
To install the extension, open Visual Studio Code, go to the Extensions view by clicking on the square icon on the sidebar or pressing Ctrl+Shift+X
, and search for GraphQL
. Find the extension by GraphQL Foundation and click Install
.
Alternatively, you can install the extension via the command line:
code --install-extension GraphQL.vscode-graphql
Or you can simply go to extensions and add the official graphql extensions (GraphQL: Language Feature Support, GraphQL: Syntax Highlighting)
JetBrains IDEs such as WebStorm or IntelliJ IDEA support GraphQL development through plugins. To install a GraphQL plugin, follow these steps:
Preferences
> Plugins
.Marketplace
tab and search for GraphQL
.Install
.This plugin provides features such as syntax highlighting, documentation lookup, and schema-aware code completion.
We hope this library helps you kickstart your project with the Monday API more efficiently. Happy coding!
When using this package, you will automatically get an example query and an example mutation in your queries file. Here is how to use them!
const client = new ApiClient("your_api_token"); // From the monday api sdk @mondaydotcomorg/api
const queryVariables: QueryBoardsArgs = { ids: ["your_board_id"] }; // replace with your board id
const queryData = await client.query<GetBoardsQuery>(exampleQuery, queryVariables);
const mutationVariables: CreateItemMutationVariables = {
boardId: "your_board_id", // replace with your board id
groupId: "your_groyup_id", // replace with your group id
itemName: "Im using my own queries!",
};
const mutationData = client.query<CreateItemMutation>(exampleMutation, mutationVariables);
you can also add advanced options for you work environment, for example you can add configuration to add react hooks out of your queries (@graphql-codegen/typescript-react-query). simply install the config that best suits you manually Or run npm i --save-dev @graphql-codegen/cli and then run graphql-codegen init and choose config that better suits you!
FAQs
## Overview
The npm package setup-api receives a total of 0 weekly downloads. As such, setup-api popularity was classified as not popular.
We found that setup-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.