Skip to content

Comments

docs(readme): Update with accurate API documentation and cover image#10

Merged
arcaela merged 1 commit intomainfrom
docs/readme-update-issue-9
Dec 13, 2025
Merged

docs(readme): Update with accurate API documentation and cover image#10
arcaela merged 1 commit intomainfrom
docs/readme-update-issue-9

Conversation

@arcaela
Copy link
Member

@arcaela arcaela commented Dec 13, 2025

Summary

Fixes #9

Complete README rewrite with accurate information from the actual codebase.

Changes

Aspect Before After
Cover SVG banner docs/assets/cover.png
Lines 1,272 461
Connection API Dynamite.config() new Dynamite().connect()

Added

  • Decorators: @DeleteAt, @Serialize, @HasOne, @ManyToMany, @Column
  • Methods: attach(), detach(), sync(), forceDestroy(), withTrashed(), onlyTrashed()
  • Types: InferRelations, CreateInput, UpdateInput
  • Transactions: dynamite.tx() documentation

Fixed

  • Connection API matches actual implementation
  • Query operators: $include instead of begins-with
  • Removed incorrect HasMany<T>/BelongsTo<T> types (they're decorators)

Removed

  • Redundant examples and verbose explanations
  • Outdated project structure section
  • Incorrect troubleshooting section

Test plan

  • Verify cover image renders on GitHub
  • Verify all code examples match actual API
  • Check links to documentation site

Fixes #9

- Add cover image (docs/assets/cover.png)
- Fix connection API: Dynamite.config() → new Dynamite().connect()
- Add missing decorators: @DeleteAt, @serialize, @hasone, @manytomany, @column
- Add missing methods: attach(), detach(), sync(), forceDestroy(), withTrashed(), onlyTrashed()
- Add missing types: InferRelations, CreateInput, UpdateInput
- Fix query operators: begins-with → $include
- Remove incorrect HasMany<T>/BelongsTo<T> types (they're decorators)
- Reduce from 1,272 to 461 lines
@arcaela arcaela merged commit 7bd2cb4 into main Dec 13, 2025
1 of 3 checks passed
@arcaela arcaela deleted the docs/readme-update-issue-9 branch December 13, 2025 20:23
arcaela added a commit that referenced this pull request Dec 13, 2025
…10)

Fixes #9

- Add cover image (docs/assets/cover.png)
- Fix connection API: Dynamite.config() → new Dynamite().connect()
- Add missing decorators: @DeleteAt, @serialize, @hasone, @manytomany, @column
- Add missing methods: attach(), detach(), sync(), forceDestroy(), withTrashed(), onlyTrashed()
- Add missing types: InferRelations, CreateInput, UpdateInput
- Fix query operators: begins-with → $include
- Remove incorrect HasMany<T>/BelongsTo<T> types (they're decorators)
- Reduce from 1,272 to 461 lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(readme): Update README with accurate API documentation and cover image

1 participant