Overview
The Entry system is the foundation of Inspatial Cloud’s data model. Entries are structured data records that represent your application’s content, similar to rows in a database or documents in a NoSQL database.What is an Entry?
An entry is a typed data object with a unique identifier and metadata. Every entry has:- id: Unique identifier (string or number based on ID mode)
- createdAt: Timestamp of creation
- updatedAt: Timestamp of last modification
- Custom fields: Defined by your entry type schema
Entry Interface
The baseEntry interface provides the foundation:
Entry Types
Entry types define the schema and behavior for entries. They are similar to tables in SQL or collections in MongoDB.Entry Type Configuration
Entry Type Structure
ID Modes
Entries can use different ID generation strategies:Auto-increment (auto)
Numeric IDs automatically assigned by the database:Manual (manual)
You provide the ID when creating entries:UUID (uuid)
Universally unique identifiers generated automatically:Entry Operations
Creating Entries
Reading Entries
Updating Entries
Deleting Entries
Entry Actions
Entry types can define custom actions that perform specific operations:Running Entry Actions
Entry Connections
Entries can reference other entries, creating relationships:Counting Connections
Aggregation Operations
Counting Entries
Summing Fields
Tagging System
If an entry type hastaggable: true, entries can be tagged:
Field Values
Entries can contain various field value types defined byInValue:
- Primitive types: string, number, boolean, null
- Arrays and nested objects
- Special field types (images, references, etc.)
Best Practices
Type Safety
Define TypeScript interfaces for your entries to get full type checking and autocomplete.
Validation
Use entry type schemas to validate data before sending to the server.
Indexing
Set
searchFields for fields you’ll frequently search to improve performance.Connections
Use entry connections instead of duplicating data to maintain referential integrity.
Real-World Example
Next Steps
Cloud Client
Learn about the main API client
Live Updates
Subscribe to real-time entry changes
Field Types
Explore available field types
Querying Guide
Advanced querying techniques