Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

How to get users subscriptions #3

Open
donnersvensson opened this issue Apr 30, 2021 · 4 comments
Open

How to get users subscriptions #3

donnersvensson opened this issue Apr 30, 2021 · 4 comments

Comments

@donnersvensson
Copy link

Hi @kidunot89,

First: thanks a lot for making this plugin!

One question: Is it to possible to query for a users subscriptions and to edit the users subscription?
The user will be authenticated with the wp-graphql-jwt-authentication plugin.

Thanks in advance for any help.

@kidunot89
Copy link
Member

@donnersvensson Honestly, I'm not sure. This extension is still very incomplete. Sorry😔

@donnersvensson
Copy link
Author

Ok, thank you for your quick answer. Would love to have that feature. For now I am probably going to try to solve this with the REST API

@foundationx
Copy link

I also need to get user subscriptions, from what I have found this is stored as a post with the post_type equal to shop_subscription. any ideas how I can add to graphql is appreciated.

@donnersvensson
Copy link
Author

From what I understand, you would have to extend WPGraphQL and expose the post_type data to the GraphQL schema: https://www.wpgraphql.com/docs/build-your-first-wpgraphql-extension/ . Unfortunately at the moment I don´t have the time to work on that :-(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants