Skip to content

Experimental package, for swift-backend infrastructure extensions

License

Notifications You must be signed in to change notification settings

CaptureContext/swift-vapor-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Vapor Extensions

Experimental package, might be separated into multiple packages later, but semver is honored here.

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

License

This library is released under the MIT license. See LICENSE for details.

About

Experimental package, for swift-backend infrastructure extensions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages