wp-graphql / woographql-subscriptions

Adds WooCommerce Subscriptions types and functionality to your WPGraphQL API.
MIT License
14 stars 12 forks source link

How to get users subscriptions #3

Open donnersvensson opened 3 years ago

donnersvensson commented 3 years ago

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 commented 3 years ago

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

donnersvensson commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 :-(