Skip to content

Commit 630bf3c

Browse files
quick start
1 parent 0e39650 commit 630bf3c

File tree

3 files changed

+38
-17
lines changed

3 files changed

+38
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ A high-performance, embedded, GraphQL-native database engine written in C# for .
2424

2525
### Documentation
2626

27-
- [**⚡ Quick Start**](docs/quick-start.md) - Get up and running in 5 minutes with Star Wars example
27+
- [**⚡ Quick Start**](examples/StarWars/quick-start.md) - Get up and running in 5 minutes with Star Wars example
2828
- [Getting Started Guide](docs/getting-started.md) - Installation and quick start tutorials
29-
- [**Filtering & Sorting Guide**](docs/filtering-guide.md) - Prisma-style filtering, sorting, pagination with examples
29+
- [**Filtering & Sorting Guide**](examples/StarWars/filtering-guide.md) - Prisma-style filtering, sorting, pagination with Star Wars examples
3030
- [Features](docs/features.md) - Schema-driven development, GraphQL support, storage engine
3131
- [Configuration](docs/configuration.md) - Database configuration and settings
3232
- [API Reference](docs/api-reference.md) - Complete API documentation
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# SharpGraph Filtering & Sorting Guide
1+
# 🎬 SharpGraph Filtering & Sorting Guide - Star Wars Examples
22

33
Complete guide to Prisma-style filtering, sorting, and pagination in SharpGraph.
44

5+
**All examples use the Star Wars GraphQL Database** with 6 entity types: Character, Film, Planet, Species, Starship, and Vehicle.
6+
57
## Table of Contents
68

79
1. [Connection Pattern](#connection-pattern)
Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# 🚀 SharpGraph Quick Start Guide
1+
# 🚀 SharpGraph Quick Start - Star Wars Example
22

3-
Get started with SharpGraph in 5 minutes: seed the Star Wars database and start querying!
3+
Get started with SharpGraph in 5 minutes using the Star Wars database: seed data and start querying!
4+
5+
All examples in this guide use the **Star Wars GraphQL Database** with 30+ characters, 8 films, planets, species, starships, and vehicles.
46

57
## Prerequisites
68

@@ -36,7 +38,18 @@ dotnet build
3638

3739
## Step 3: Start the GraphQL Server
3840

39-
The SharpGraph server runs on `http://localhost:8080` and automatically loads the Star Wars schema with seed data.
41+
The SharpGraph server automatically loads the Star Wars schema and seeds the database with 30+ characters, 8 films, planets, species, starships, and vehicles.
42+
43+
### How Seeding Works
44+
45+
When you start the server:
46+
1. **Schema Load** - Reads `graphql_db/schema.graphql`
47+
2. **Type Generation** - Generates connection types, filter types, CRUD mutations
48+
3. **Seed Data** - Populates tables from `examples/StarWars/seed_data.json`
49+
4. **Index Creation** - Creates indexes for fast lookups
50+
5. **Server Ready** - Listens on `http://localhost:8080`
51+
52+
All seed data is stored in binary format in the `graphql_db/` folder and persists between restarts.
4053

4154
### Option A: Using PowerShell script (easiest)
4255

@@ -46,6 +59,10 @@ The SharpGraph server runs on `http://localhost:8080` and automatically loads th
4659
4760
# You should see:
4861
# 🚀 SharpGraph Server starting...
62+
# ✅ Schema loaded from graphql_db/schema.graphql
63+
# ✅ Seeding database with Star Wars data...
64+
# ✅ Character table: 30+ characters loaded
65+
# ✅ Film table: 8 films loaded
4966
# ✅ Server is ready at http://127.0.0.1:8080
5067
# 📊 Introspection available at http://127.0.0.1:8080/__schema
5168
```
@@ -61,12 +78,14 @@ dotnet watch run --project src/SharpGraph.Server/SharpGraph.Server.csproj
6178
```
6279

6380
The server will:
64-
✅ Load `graphql_db/schema.graphql`
81+
✅ Load `graphql_db/schema.graphql` with Star Wars types
82+
✅ Seed database with 30+ characters from `seed_data.json`
6583
✅ Generate connection types (CharacterConnection, FilmConnection, etc.)
66-
✅ Auto-generate CRUD mutations
84+
✅ Auto-generate CRUD mutations (create, update, delete)
85+
✅ Create indexes for fast lookups
6786
✅ Make schema available for introspection
6887

69-
**Keep this terminal open** - your server is now running!
88+
**Keep this terminal open** - your server is now running with Star Wars data ready to query!
7089

7190
## Step 4: Test with Your First Query
7291

@@ -403,14 +422,14 @@ $query = @'
403422
## Next Steps
404423

405424
### 📖 Learn More
406-
- **[filtering-guide.md](filtering-guide.md)** - Complete filtering and sorting reference
407-
- **[README.md](../README.md)** - Architecture and features overview
408-
- **[examples/StarWars/README.md](../examples/StarWars/README.md)** - Star Wars schema details
425+
- **[filtering-guide.md](filtering-guide.md)** - Complete filtering and sorting reference with Star Wars queries
426+
- **[README.md](../../README.md)** - Architecture and features overview
427+
- **[README.md](README.md)** - Star Wars schema details
409428

410429
### 🔧 Advanced Topics
411-
- [SCHEMA_DRIVEN_FEATURE.md](../SCHEMA_DRIVEN_FEATURE.md) - Schema-driven development
412-
- [INDEXING-TESTS-SUMMARY.md](../INDEXING-TESTS-SUMMARY.md) - Indexing strategy
413-
- [OPTIMIZATIONS.md](../OPTIMIZATIONS.md) - Performance tips
430+
- [SCHEMA_DRIVEN_FEATURE.md](../../SCHEMA_DRIVEN_FEATURE.md) - Schema-driven development
431+
- [INDEXING-TESTS-SUMMARY.md](../../INDEXING-TESTS-SUMMARY.md) - Indexing strategy
432+
- [OPTIMIZATIONS.md](../../OPTIMIZATIONS.md) - Performance tips
414433

415434
### 💡 Try Building Your Own Schema
416435

@@ -444,8 +463,8 @@ input UserInput {
444463

445464
## Getting Help
446465

447-
- 📝 Check the [documentation](../README.md)
448-
- 🐛 Review [troubleshooting guide](troubleshooting.md)
466+
- 📝 Check the [documentation](../../README.md)
467+
- 🐛 Review [troubleshooting guide](../../docs/troubleshooting.md)
449468
- 💬 Check GitHub issues or create a new one
450469

451470
## Performance Tips

0 commit comments

Comments
 (0)