# Patch v1.2.1 - Schema Fix
**Release Date**: October 16, 2025
**Type**: Bug Fix (Patch)
**Previous Version**: 1.2.0
**Author**: Gary Wenneker
## π Bug Fix
### Issue
`sitecore_get_children` tool returned GraphQL error:
```
Error: Cannot query field "results" on type "Item"
```
### Root Cause
The `/items/master` schema has a **different structure** than the old `/edge` schema:
- **Old /edge**: `children { results { ... } }` (ItemSearchResults type)
- **New /items/master**: `children(first: 100) { ... }` (direct [Item] array)
### Solution
Fixed `getChildren()` method in `src/sitecore-service.ts`:
- β
Removed `results` field access
- β
Added `first: 100` pagination argument
- β
Changed to direct array access: `children` instead of `children.results`
## π Changes
### Modified Files
1. **src/sitecore-service.ts** - Fixed children query structure
2. **src/index.ts** - Version bumped to 1.2.1
3. **package.json** - Version bumped to 1.2.1
### Test Results
```powershell
β
GraphQL Query: SUCCESS
β
TypeScript Build: SUCCESS
β
Children returned: 3 items
```
## π Documentation
New documentation:
- **SCHEMA-FIX-CHILDREN.md** - Complete analysis of the schema difference
## π How to Update
```bash
cd c:\gary\Sitecore\SitecoreMCP
npm run build
```
Then restart your MCP client (Claude Desktop, VS Code, etc.).
## β
Impact
### Fixed
- β
`sitecore_get_children` now works correctly
### Unaffected (Still Working)
- β
`sitecore_get_item`
- β
`sitecore_search` (uses `search().results`, which is correct)
- β
`sitecore_query` (uses `search().results`)
- β
`sitecore_get_field_value`
- β
`sitecore_get_template`
- β
`sitecore_command` (natural language interface)
- β
`/sitecore` slash command menu
## π Technical Details
See [SCHEMA-FIX-CHILDREN.md](SCHEMA-FIX-CHILDREN.md) for:
- Complete schema comparison
- Code changes (before/after)
- Testing procedures
- Lessons learned
---
**Status**: β
READY FOR USE
**Build**: β
SUCCESS
**Tests**: β
PASS