# NAME SQL::Translator::Producer::GraphQL - GraphQL schema producer for SQL::Translator # PROJECT STATUS | OS | Build status | |:-------:|--------------:| | Linux | [![Build Status](https://travis-ci.org/graphql-perl/SQL-Translator-Producer-GraphQL.svg?branch=master)](https://travis-ci.org/graphql-perl/SQL-Translator-Producer-GraphQL) | [![CPAN version](https://badge.fury.io/pl/SQL-Translator-Producer-GraphQL.svg)](https://metacpan.org/pod/SQL::Translator::Producer::GraphQL) # SYNOPSIS use SQL::Translator; use SQL::Translator::Producer::GraphQL; my $t = SQL::Translator->new( parser => '...' ); $t->producer('GraphQL'); $t->translate; # DESCRIPTION This module will produce a [GraphQL::Schema](https://metacpan.org/pod/GraphQL::Schema) from the given [SQL::Translator::Schema](https://metacpan.org/pod/SQL::Translator::Schema). It does this by first turning it into a [DBIx::Class::Schema](https://metacpan.org/pod/DBIx::Class::Schema) using [SQL::Translator::Producer::DBIx::Class::File](https://metacpan.org/pod/SQL::Translator::Producer::DBIx::Class::File), then passing it to ["to\_graphql" in GraphQL::Plugin::Convert::DBIC](https://metacpan.org/pod/GraphQL::Plugin::Convert::DBIC#to_graphql). # ARGUMENTS Currently none. # DEBUGGING To debug, set environment variable `GRAPHQL_DEBUG` to a true value. # AUTHOR Ed J, `` Based heavily on [SQL::Translator::Producer::DBIxSchemaDSL](https://metacpan.org/pod/SQL::Translator::Producer::DBIxSchemaDSL). # LICENSE Copyright (C) Ed J This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.