https://github.com/adrenallen/eloquent-graphql-transpiler
Eloquent model to GraphQL schema transpiler Artisan command for Laravel
https://github.com/adrenallen/eloquent-graphql-transpiler
artisan eloquent graphql laravel php
Last synced: about 2 months ago
JSON representation
Eloquent model to GraphQL schema transpiler Artisan command for Laravel
- Host: GitHub
- URL: https://github.com/adrenallen/eloquent-graphql-transpiler
- Owner: adrenallen
- License: mit
- Created: 2022-03-29T21:39:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-23T01:31:57.000Z (almost 3 years ago)
- Last Synced: 2025-01-29T03:49:52.900Z (3 months ago)
- Topics: artisan, eloquent, graphql, laravel, php
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eloquent GraphQL Transpiler
A project to automatically generate GraphQL schemas from Eloquent models.This is a [Laravel artisan command](https://laravel.com/docs/master/artisan) and can be [installed via composer using the repo URL.](https://getcomposer.org/doc/05-repositories.md)
This is intended for use with [Lightouse PHP](https://lighthouse-php.com/) but can likely be modified to work elsewhere.
## Example usage
```
graphql:transpile
{model : Full path to a model, or a model name itself can be passed to default into looking at the graphql configured model folders}
{--noOverwrite : Do not overwrite an existing schema file for this model if it exists already}
{--noRelationships : Do not scaffold out any relationships for this model}
```