Support for Auto-Generating PHP Types from .graphql
Files and Handling Split Schemas
#1596
Unanswered
e-labInnovations
asked this question in
Q&A
Replies: 1 comment
-
There is no documentation, but I'm happy to assist. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello team,
I'm working on a project where I use
webonyx/graphql-php
to implement a GraphQL server. My schema is organized using.graphql
files that define various types, queries, and mutations. I aim to streamline our development process by auto-generating the corresponding PHP classes (likeQueryType.php
,MutationType.php
, etc.) from these.graphql
files.My questions are:
Is there any built-in support in
webonyx/graphql-php
for auto-generating PHP types from.graphql
schema files?Are there any recommended third-party tools or best practices within the PHP ecosystem that can help achieve this?
Challenges with Using
schema.graphql
Directly:schema.graphql
file directly in the project, as shown in the official examples, we face limitations in splitting the schema across multiple files. This makes it difficult to manage larger projects where modularity is crucial.webonyx/graphql-php
?Custom CLI Tool Consideration:
.graphql
files and generating the necessary PHP classes while addressing the modularity issue?Any insights or recommendations on approaching these challenges within the
webonyx/graphql-php
framework would be greatly appreciated!Thank you for your time and for providing such a powerful GraphQL library.
Beta Was this translation helpful? Give feedback.
All reactions