Use index.php?graphql
for GraphQL endpoint
#1360
Labels
package: @faustwp/cli
The issue relates to CLI package
package: @faustwp/core
Related to the Faust Core package
In order to support custom graphql endpoints (and maybe sites without pretty permalinks) we should use the underlying WP query to get the GraphQL endpoint in
generatePossibleTypes
andgetGraphqlEndpoint
(i.e/index.php?graphql
instead of/graphql
).While this is technically filterable in the app itself with
graphqlEndpoint
, that filter has no effect on type generation. Also, this approach negates the need for a filter entirely (unless maybe you're mocking endpoint data? is that a thing in the frontend ecosystem?).The text was updated successfully, but these errors were encountered: