light-speak / lighthouse-schema-generator
1.0.1
2023-09-11 05:59 UTC
Requires
- php: >= 8.1
- doctrine/dbal: ^3.6
- nuwave/lighthouse: ^6.16
Requires (Dev)
- orchestra/testbench: ^8.10.1
- vimeo/psalm: ^5.15.0
README
CONTENTS OF THIS FILE
- Updates
- Description
- Key packages
- Installation
- Usage
UPDATES
21.12.2021 - added generation graphql schemas (ONLY TYPES) based on Laravel models and tables.
DESCRIPTION
Lighthouse schema generator is a package for generation graphql schemas made as an extension for "nuwave/lighthouse" package.
KEY PACKAGES
- Lighthouse-php (https://github.com/nuwave/lighthouse)
- Doctrine/DBAL (https://github.com/doctrine/dbal)
INSTALLATION
- Set up database connection in .env configuration file.
- Run: composer require dm-la/lighthouse-schema-generator
USAGE
Graphql schemas generation:
php artisan make:graphql-schema
-f|force - force schemas generation, rewriting existing schemas --models-path= - Path for models folder, relative to app path