CodeMash
  • 🚀Backend as a service
  • 🦄Roadmap
  • 🍕Release Notes
  • Installation
    • Managed Service
    • 🏗️AWS-CDK
    • 🏗️Azure
    • 🏗️Docker
    • 🏗️GC
    • 🏗️Terraform
  • dashboard
    • CodeMash Cloud
    • Project
    • Membership
      • Users
      • Roles
      • Policies
      • Triggers
      • Integrations
        • Apple
        • Azure
        • Facebook
        • Google
        • Twitter
      • Settings
    • Database
      • Collections
        • Schema
          • From Template
          • Structure
        • Tabs
        • Triggers
        • Indexes
        • Shared Forms
      • Taxonomies
        • Terms
        • Schema
        • Settings
      • Aggregation
      • Imports
      • Exports
      • Backups
    • Files
      • Integrations
        • CodeMash
        • S3 Bucket
    • Notifications
      • Push
        • Push Templates
        • Push Templates API
        • Push Notifications
        • Push Notifications API
        • Devices
        • Devices API
        • Integrations
          • Firebase
          • One Signal
          • Expo
      • Email
        • Email Templates
        • Emails
        • Integrations
          • AWS SES
          • Twilio Sendgrid
          • Mailgun
      • 🏗️Server events
      • 🏗️Sms
    • Payments
      • Integrations
        • Apple Pay
        • Google Pay
        • Stripe
        • Kevin.
        • Paysera
        • Decta
    • Scheduler
    • Logs & Monitoring
    • Code
      • Functions
        • Function Inputs
        • Function Templates
          • Node.js
          • Python
          • Ruby
          • Java
          • Go
          • .NET Core
      • CodeMash Functions
        • Google Functions
          • Google Calendar
          • Google Gmail
        • Microsoft Functions
          • Microsoft 365 Users
          • Microsoft 365 Calendar
        • Collection Find
        • Collection Update
        • Users Find
        • Image Resize
        • Html To Pdf
        • Word Document
        • Barcode
        • QR Code
        • Send Email
        • Send Notification
        • Email Reminder
        • Notification Reminder
      • Integrations
        • AWS Lambda
        • Google Cloud Functions
        • Azure Functions
  • Other Topics
    • Apple
      • Developer Portal
      • Bundle Identifier
      • Team ID
      • Service ID
      • Key ID
    • Triggers
    • Tokens Binding
      • Project Tokens
      • Initiator Tokens
      • Receiver Tokens
      • Request Tokens
      • Operation based tokens
      • Template Functions
    • Search parameters
      • Paging
      • Filter
      • Sort
      • Projection
    • data-models
    • Errors
  • SDK
    • Node.js
    • TypeScript
    • .NET
    • 🏗️Go Lang
    • 🏗️Flutter
    • 🏗️Swift
    • 🏗️Kotlin
  • CLI
    • 🏗️CodeMash CLI
  • API
    • Get Started
    • Prerequisites
    • How to test?
    • Cors
    • Project
    • Membership
      • Authentication
      • Users
    • Database
      • Collections
        • Aggregate
        • Change Responsibility
        • Count
        • Delete
        • Delete Many
        • Distinct
        • Find
        • Find One
        • Insert
        • Insert Many
        • References
        • Replace
        • Update
        • Update Many
      • Taxonomies
        • Find
    • Files
    • Code
    • Notifications
      • Push
      • Emails
      • Server Events
      • 🏗️Sms
    • Payments
    • Scheduler
    • Logs & Monitoring
Powered by GitBook
On this page
  • Creating a collection
  • Collection configuration
  • Collections API

Was this helpful?

Edit on GitHub
  1. dashboard
  2. Database

Collections

Overview of collections

PreviousDatabaseNextSchema

Last updated 4 years ago

Was this helpful?

The collection is a way to store your data inside the database. You can create new collections on our dashboard page where we provide an easy to use collection builder with various field types. Our builder is using JSON schema to store the structure of your collection so you can copy the schema and reuse it in creating other collections.

Creating a collection

  • Navigate to the collections list by selecting on Database Module from the left menu bar and then selecting Collections from a sub-menu.

  • Press on Add New button and a new dialog window will show up where you set your collection name and can select a predefined template (optional) for your collection. Templates already include fields based on the theme of a template.

  • After you have defined a name and optionally selected a template, press Next, and a collection builder will open.

  • In the opened page you can see several tabs that allow you to configure your collection. Generally, you only need a schema builder to be able to add fields to your collection. You can also use a JSON view to manually edit your schema.

  • To add a field, open the Schema tab and press a + button. A new dialog will show up where you can select a field.

  • After selecting a field another dialog will show up and in there you have to provide information about the field.

  • After you have configured a field, press Save. This will add a new field to your collection.

  • When done adding fields, press Save inside of the Schema tab to save all added/updated fields.

Collection configuration

The collection has many settings that you can configure. This is all accessible inside of a collection page which can be accessed during collection creation or by selecting a collection from the collections list.

  1. Schema - allows you to manage your collection fields.

  2. Preview - allows you to see how your fields will be rendered when adding records from a dashboard.

  3. JSON - allows you to edit/copy your JSON and UI schemas manually. This is essentially what schema builder generates.

  4. Tabs - shows all tabs used for your collection fields.

  5. Triggers - allows you to manage triggers for this collection. Not available during collection creation.

  6. Indexes - allow you to manage indexes for this collection. Not available during collection creation.

More about configuration settings:

Collections API

Exposed API collection methods allow performing CRUD operations over your collections.

Schema
Tabs
Triggers
Indexes
Collections
Collections list where you can add new collections
Defining a name for a new collection and choosing a template (optional)
Schema builder. Press + to add a field.
Available collection fields. Select one to configure.
Configure field's information