Skip to content

Releases: CaptureContext/swift-vapor-extensions

0.0.1

11 Aug 00:59
Compare
Choose a tag to compare

First release 🚀

Contents

FluentExtensions

Extends vapor/fluent-kit.

Features:

  • FieldKeyProvider
    Protocol for Models for better support or enum FieldKeys

  • 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 Migrations

  • Exports FluentKit

GraphitiExtensions

Extends 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.
Depends on:

Features:

  • GQLField convenience initializers for Vapor

  • GraphQLJSONEncoder conformance to Vapor.ContentEncoder

  • SimpleResolver type for functional style of Resolver declarations

  • Exports GraphitiExtensions

  • Exports GraphQLKit

MIT license