Skip to content

Getting Started

This section helps a new user move from first access to a reliable first workflow in one session. By the end, you will have a working domain model with mapped data, a live GraphQL API you can query, and a clear understanding of what to do next.

What You Will Build

In this guide, you will:

  1. Access Mockomat and choose your working mode.
  2. Create a domain table that represents a real business concept.
  3. Add attributes with appropriate types and mapping.
  4. Establish at least one relation to another entity.
  5. Preview your model through the live runtime.
  6. Validate that the API returns the data shapes you expect.

The entire process takes about 15 minutes.

Screenshot gs-01-start-entryScreenshot gs-01-start-entry
gs-01-start-entryMissing

Entry point from landing to app workspace.

Step 1: Choose Your Access Mode

Mockomat offers two access modes, each designed for a different stage of work:

Guest Mode (Quick Start)

Guest mode is the fastest path to a working mock API. No registration, no setup — just open Mockomat and start modeling.

What you get:

  • One temporary project with a public endpoint
  • Full access to the modelling board, attribute configuration, and preview
  • Access to all data mapping types (real datasets, Faker, constants)
  • A live GraphQL endpoint you can query immediately

Limitations:

  • Your work is tied to your browser session — closing the tab or clearing cookies loses your progress
  • Only one project at a time
  • No team sharing or project management
  • Public endpoint only (no private access controls)

Guest mode is ideal for quick idea validation, demos, and evaluating whether Mockomat fits your workflow.

Account Mode (Persistent Workspace)

Account mode adds persistence, project management, and the ability to grow your usage over time.

What you get (Free tier):

  • Up to 5 saved projects
  • Persistent models that survive browser sessions
  • Project history and the ability to revisit and iterate
  • 1,000 API requests per day
  • Public endpoints

When to switch:

  • When your first model proves useful and you want to keep it
  • When you need to share work with teammates
  • When you want to iterate across multiple sessions
Screenshot gs-02-guest-workspaceScreenshot gs-02-guest-workspace
gs-02-guest-workspaceMissing

Guest workspace with first domain table.

Step 2: Model One Real Domain Slice

A domain slice is a small, coherent subset of your business model. Start with one or two entities that represent something real in your system.

Choose Meaningful Names

Avoid generic sample names. Use actual business language your team already uses:

Good examples:

  • Customer, Subscription, Invoice
  • Order, Payment, Shipment
  • Product, Category, Review
  • Employee, Department, TimeEntry

Avoid:

  • Table1, TestEntity, MyModel
  • Data, Item, Thing

Meaningful names make your model self-documenting and immediately useful for team discussions.

Add Attributes

Each entity needs attributes that describe its data. When adding attributes, consider:

PropertyPurposeExample
NameDescriptive identifierfirstName, totalAmount, isActive
TypeData typestring, number, boolean, date
RequiredMust always have a valuetrue for email, false for middleName
SortableCan be used for orderingtrue for createdAt, price
SearchableParticipates in searchtrue for name, title
FilterableSupports filter expressionstrue for status, category

Practical tip: Start with 4-6 core attributes per entity. You can always add more later, but a focused model gives better feedback than a broad, shallow one.

Choose Field Mappings

Each attribute needs a data source. Mockomat supports three mapping types:

OFF_FIELD — Real dataset data

Map to a field from a real-world dataset (e.g., Open Food Facts). Produces realistic, diverse values. Best for product names, categories, nutritional data, barcodes.

FAKE — Synthetic data (Faker)

Generate realistic but fictional data: names, emails, addresses, dates, prices. Best for personal data, financial amounts, timestamps, contact details.

CONST — Fixed values

Every record gets the same value. Best for default statuses ("active"), fixed configuration, placeholder values during early modeling.

Screenshot gs-03-first-tableScreenshot gs-03-first-table
gs-03-first-tableMissing

First table creation and attribute setup.

Establish a Relation

Once you have one entity modeled, add a second entity and connect them:

  1. Create a second table (e.g., Order if your first was Customer).
  2. Define the relation type: Does a customer have many orders (1:n)? Does an order belong to exactly one customer?
  3. Set the direction: which entity owns the relation?

Relations are critical for testing how your API handles nested data. A model with at least one relation gives you much richer preview feedback.

Screenshot gs-03b-first-relationScreenshot gs-03b-first-relation
gs-03b-first-relationMissing

First relation setup between two entities.

Step 3: Validate Through Preview

Preview is not only for demos. It is a model quality checkpoint. Every time you change your model, run a preview to confirm the change behaves as expected.

What to Check

Field readability — Do the returned field names make sense? Are they consistent (all camelCase, no abbreviations)?

Data shape consistency — Does each field return the expected type? Are strings actually strings, numbers actually numbers?

Relation behavior — When you query a parent entity, do child entities appear correctly nested? Is the cardinality right (array for 1:n, single object for 1:1)?

Missing mapping signals — The preview shows hints for attributes that don't have a data source yet. Address these before moving forward.

Filter and sort behavior — Try filtering by a field you marked as filterable. Try sorting by a sortable field. Do the results make sense?

Common Preview Issues

IssueLikely CauseFix
Field returns nullNo mapping configuredAssign an OFF_FIELD, FAKE, or CONST mapping
Relation returns empty arrayRelation not properly definedCheck relation direction and target entity
Sort has no effectField not marked sortableEnable sortable flag on the attribute
Filter returns all recordsField not marked filterableEnable filterable flag on the attribute
Screenshot gs-04-first-previewScreenshot gs-04-first-preview
gs-04-first-previewMissing

First preview run with mapped and unmapped fields.

Step 4: Query Your API

Once preview looks correct, your mock API is already live. You can query it from any GraphQL client or directly from your frontend application.

The endpoint for your project is:

POST /mock/{your-project-slug}/graphql

Try a simple list query:

graphql
query {
  customers(offset: 0, limit: 10) {
    id
    firstName
    lastName
    email
    orders {
      id
      totalAmount
      createdAt
    }
  }
}

The response will contain realistic data drawn from your configured mappings, with relations resolved automatically.

Screenshot gs-04b-first-queryScreenshot gs-04b-first-query
gs-04b-first-queryMissing

First GraphQL query against the live mock endpoint.

Step 5: Decide the Next Path

After your first successful model and query cycle, you have several directions:

  • Deepen your model — add more entities, refine attributes, establish additional relations.
  • Configure API exposure — define which operations are available, set query naming conventions.
  • Move toward export — if the model is stable enough, explore code generation to get a production-ready NestJS backend.
  • Use blueprints — explore pre-built domain templates to accelerate future projects.
  • Share with your team — create an account (if in guest mode) and invite collaborators.
Screenshot gs-05-next-stepsScreenshot gs-05-next-steps
gs-05-next-stepsMissing

Decision point after first successful preview cycle.

What You Have Now

After completing this guide, you have:

  • A domain model with at least one entity, meaningful attributes, and configured data mappings
  • A live GraphQL API endpoint that returns realistic data
  • Validation that your model behaves as expected under real queries
  • A clear understanding of the model → preview → query workflow

From here, explore Core Concepts to understand the architecture behind what you just built, or dive into Workspace for a detailed guide to the modeling tools.