documentation icon indicating copy to clipboard operation
documentation copied to clipboard

[Request]: V4 documentation lacks examples for creating custom GraphQL Mutations and Queries

Open kibblerz opened this issue 4 years ago • 1 comments

Summary

I recently transitioned some of our sites to V4, which is a massive improvement imo. Though I noticed that there was no examples of custom GraphQL Mutations in the Documentation. Not quite sure how this is meant to be done.

The Queries resolver documentation also seems a bit lacking. The example in the docs shows a function called resolve(), with no parameters passed in and only returning a static object.

Why is it needed?

Custom Mutations are a common need when working with GraphQL. It'd be helpful to have an example of how this should be done.

Suggested solution(s)

I'd submit a PR to update the documentation, but I'm struggling to figure out how it should be done currently.

Related issue(s)/PR(s)

No response

kibblerz avatar Dec 07 '21 16:12 kibblerz

Thank you for opening this issue, and sorry for not replying earlier. The documentation team, unfortunately, didn't have time to focus on issues before now.

I'm adding @Convly to the conversation. As a backend developer who worked on the GraphQL rewrite for Strapi v4, he might have solutions for you that we could include in the documentation :-)

pwizla avatar Jun 21 '22 09:06 pwizla

Hello. I'm sorry that you were having troubles and that this issue didn't get more attention sooner. I'm cleaning up old documentation issues and I will close this issue now. This topic has been added to our internal backlog.

pwizla avatar Jul 10 '23 16:07 pwizla