Overview
- Upgrade to v8
- Overview
- FAQ
- Demo WebApp with RESTHeart
- Performances
- Roadmap
- Framework Tutorial
- REST API Tutorial
- GraphQL API Tutorial
- Auth^2 Tutorial
- Example Web Apps built with RESTHeart
- Blog posts
- Video Tutorials
RESTHeart Cloud Coming soon!
Setup
- Setup
- Setup with Docker
- Configuration
- Default Configuration
- Client Authentication Howto
- User Management
- GraalVM
- Security Hardening
- Configure TLS
- Secure connection to MongoDB
- Proxying requests
- Serving static resources
- Logging
- Monitoring
- Auditing
- Clustering & Load Balancing
- Enterprise License
Framework
- Overview
- Tutorial
- How to deploy Plugins
- Services
- Interceptors
- Providers
- Initializers
- Services and Inteceptors in JavaScript
- Overview
- Authentication Mechanisms
- Authenticators
- Authorizers
- Token Managers
Base Plugins
Security Plugins
Security Plugins
MongoDB Plugins
- Getting Started
- Reading Documents
- Writing Documents
- Managing Binary Files
- Aggregations
- Databases and Collections
- Indexes
- CSV Import
- Transactions
- Performance and Caching
- Read/Write Concerns
- Relationships
- JSON Schema Validation
- Resource URIs
- Representation Format
- ETag
- Shard Keys
- Load Sample Data
- Overview
- Getting Started
- App Definition
- Basic Tutorial
- Advanced Example
- Performance Optimization
- Best Practices
- Overview
- Streams definition
- Variables
- Examples
REST API
GraphQL API
Websocket API
Shard Keys
The shard key determines the distribution of the collection’s documents among a cluster’s shards.
When a shared collection has shard key different than _id or a compound shard key, the shardkey
query parameter must be used.
Example: if the shard key is X
GET /db/coll/5ac9f95563445900062144aa?shardkey={"X":1} HTTP/1.1