Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.88 KB

File metadata and controls

65 lines (42 loc) · 1.88 KB
title Lesson 1 - Create package and query modules
hide_title true

Lesson 1 - Create package and query modules

<Tags tags={[ { name: "Business", link: "https://www.appsmith.com/pricing", additionalClass: "business" } ]} />

A package is a collection of JS and query modules that can be versioned and distributed across instances. Inside packages, you can create multiple queries and JS modules, allowing you to bundle and organize your application logic efficiently.

By the end of this tutorial, you will learn how to:

  • Create a package.
  • Create and reuse query modules.
  • Create and reuse JS modules.
<iframe src="https://demo.arcade.software/gCgCD9xeF0wRUFPO9hEO?embed" frameBorder="0" loading="lazy" webkitAllowFullScreen mozAllowFullScreen allowFullScreen allow="fullscreen" style={{ position: "absolute", top: 0, left: 0, width: "100%", height: "100%" }} title="Appsmith | Connect Data" />
  1. Click the Create New button from the top-right corner of your workspace and Create a new package.

  2. Rename the Package to UtilsPackage.

  3. Inside the package, you can create Query modules or JS modules.

  • Query Modules allow you to reuse datasource queries across various applications, providing dynamic inputs that adapt query parameters based on user interactions. Learn how to Create Query Modules

  • JS modules allow you to reuse functions and JavaScript logic across multiple applications. Learn how to Create JS Modules

Next steps