njosefbeck / gatsby-source-stripe

Gatsby source plugin for building websites using Stripe as a data source
74 stars 17 forks source link

Possible to include `metadata` parameter in object response? #39

Closed jasonbarry closed 5 years ago

jasonbarry commented 5 years ago

The metadata parameter is useful for showing arbitrary information related to certain Stripe objects. According to the docs, Account, Charge, Customer, PaymentIntent, Refund, Subscription, and Transfer support this property, and I know that Plan and Product do as well.

Is it possible for metadata to be one of the queryable fields?

njosefbeck commented 5 years ago

@jasonbarry Thanks so much for reaching out! Have you stored metadata on one of the above Stripe objects, and have attempted to access that property and not been able to? If not, I can go ahead and add some metadata to something and see if it's already accessible. We don't do anything to limit the information returned by Stripe, so I'm assuming the key will be on there, but I haven't tested it.

Let me know! Thanks!

jasonbarry commented 5 years ago

@njosefbeck turns out I didn't restart GraphiQL after adding those metadata properties. Nothing to see here :-) thanks for maintaining a great plugin!

njosefbeck commented 5 years ago

@jasonbarry Sounds good! Your support is much appreciated. Please reach out if you ever run into any issues. ALSO, if you're using our plugin in a project, let us know and we can include it in the README.