Skip to content

Maven plugin to build a GraphQL schema from GraphQXL files

Notifications You must be signed in to change notification settings

silidos/graphqxl-maven-plugin

Repository files navigation

graphqxl-maven-plugin

This is a Maven plugin to build a GraphQL schema from GraphQXL files. It executes the graphqxl command line tool during the compile phase on the specified files and generates a GraphQL schema file.

Usage

This assumes that you have graphqxl installed on your system. If not, you can install it with npm install -g graphqxl. Or you can follow the instructions on the graphqxl repository.

You can add the plugin to your pom.xml file like so:

<plugin>
                <groupId>io.github.silidos</groupId>
                <artifactId>graphqxl-maven-plugin</artifactId>
                <version>1.0.0</version>
                <executions>
                    <execution>
                        <id>graphqxl-compile</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>graphqxl</goal>
                        </goals>
                        <configuration>
                            <inputFile>${project.basedir}/src/main/resources/schema/schema.graphqxl</inputFile>
                        </configuration>
                    </execution>
                </executions>
</plugin>

Configuration

The plugin has the following configuration options:

  • inputFile - The path to the GraphQXL file to compile

About

Maven plugin to build a GraphQL schema from GraphQXL files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages