Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GraphQL Support #184

Open
srtfisher opened this issue Oct 25, 2021 · 2 comments
Open

Add GraphQL Support #184

srtfisher opened this issue Oct 25, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request php Requires understanding PHP

Comments

@srtfisher
Copy link
Member

srtfisher commented Oct 25, 2021

Add native GraphQL support for https://www.wpgraphql.com/

Acceptance Criteria

  • Mantle models are able to fluently register themselves for use with GraphQL with sensible defaults which are able to be overridden.
  • Add an ability to register meta keys with GraphQL when registering meta fields.
  • Mimic what we're doing for the REST API.

Background

@renatonascalves
Copy link
Contributor

@srtfisher I'm very interested in this issue but it is not clear to me what do you mean by "native support".

Could you outline some of the goals you have in mind? Or features you envision?

@mboynes
Copy link
Contributor

mboynes commented Aug 9, 2023

Would be cool to offer a trait for models that automatically set the graphql args for register_post_type...

'show_in_graphql'       => true,
'graphql_single_name'   => '...',
'graphql_plural_name'   => '...',

And even more powerful to register_graphql_field() for any public post meta on the model.

@renatonascalves renatonascalves self-assigned this May 10, 2024
@kevinfodness kevinfodness added enhancement New feature or request php Requires understanding PHP labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request php Requires understanding PHP
Projects
None yet
Development

No branches or pull requests

4 participants