https://github.com/capturecontext/swift-vapor-extensions
Experimental package, for swift-backend infrastructure extensions
https://github.com/capturecontext/swift-vapor-extensions
Last synced: about 1 month ago
JSON representation
Experimental package, for swift-backend infrastructure extensions
- Host: GitHub
- URL: https://github.com/capturecontext/swift-vapor-extensions
- Owner: CaptureContext
- License: mit
- Created: 2023-08-11T00:50:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2026-04-13T08:01:49.000Z (about 2 months ago)
- Last Synced: 2026-04-13T10:24:40.767Z (about 2 months ago)
- Language: Swift
- Size: 18.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift Vapor Extensions
Experimental package, might be separated into multiple packages later, but semver is honored here.
## Contents
### FluentExtensions
Extends [vapor/fluent-kit](https://github.com/vapor/fluent-kit).
Features:
- `FieldKeyProvider`
Protocol for `Model`s for better support or enum `FieldKey`s
- `AnyMigration`
Protocol witness for `Migration` protocol. Allows you to create migrations inline.
- `MigrationGroup`
Composition API for migrations, feel free to create your static factories in this type.
- `Migration.migration`
Static factory for more convenient inline initialisation of your `Migration`s
- Exports `FluentKit`
### GraphitiExtensions
Extends [graphqlswift/graphiti](https://github.com/graphqlswift/graphiti).
Features:
- Typealeases with `GQL` prefix, so reserved type names like `Type` won't' confuse Xcode syntax highlighter and the code style will remain consistant since each GQL type has this prefix now
- `GQLType.reflecting` method with nested types support for initialising GQLType instances
- Exports `Graphiti`
### GraphQLKitExtensions
Extends [alexsteinerde/graphql-kit](https://github.com/alexsteinerde/graphql-kit).
Depends on:
- `develop` branch of [capturecontext/swift-prelude](https://github.com/capturecontext/swift-prelude).
- [GraphitiExtensions](#graphitiextensions)
Features:
- `GQLField` convenience initializers for `Vapor`
- `GraphQLJSONEncoder` conformance to `Vapor.ContentEncoder`
- `SimpleResolver` type for functional style of Resolver declarations
- Exports `GraphitiExtensions`
- Exports `GraphQLKit`
## License
This library is released under the MIT license. See [LICENSE](./LICENSE) for details.