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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello team,
I'm working on a project where I use
webonyx/graphql-phpto implement a GraphQL server. My schema is organized using.graphqlfiles 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.graphqlfiles.My questions are:
Is there any built-in support in
webonyx/graphql-phpfor auto-generating PHP types from.graphqlschema files?Are there any recommended third-party tools or best practices within the PHP ecosystem that can help achieve this?
Challenges with Using
schema.graphqlDirectly:schema.graphqlfile 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:
.graphqlfiles and generating the necessary PHP classes while addressing the modularity issue?Any insights or recommendations on approaching these challenges within the
webonyx/graphql-phpframework 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