njosefbeck / gatsby-source-stripe

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

Product object not showing in the graphQL #74

Open airjoshb opened 2 years ago

airjoshb commented 2 years ago

Prerequisites

[ x ] Put an X between the brackets on this line if you have done all of the following:

Describe the bug The "Product" object is not showing up. I can add other objects, such as "Price" and "Customer" and they show up in the graphQL, but Product does not. I can get to products through the price object, but it does not have all of the attributes of the product that I need to display.

To Reproduce Steps to reproduce the behavior:

  1. add the product object to gatsby-config.js
  2. restart
  3. check graphQL

Expected behavior I would expect to see the allStripeProduct in the graphQL

Screenshots

Screenshot 2022-11-08 at 8 36 49 PM

Versions (please complete the following information):

os: Mac OS 13.0 node: v18.6.0 npm: 8.13.2 gatsby: 4.5.4 gatsby-source-stripe: 4.0.0

Gatsby config:

'gatsby-plugin-netlify',
    {
      resolve: `gatsby-source-stripe`,
      options: {
        objects: ['Price', 'Product', 'Customer'],
        secretKey: process.env.STRIPE_SECRET_KEY,
        downloadFiles: false,
      },
    },
jansengunderson commented 1 year ago

Also encountering this bug with Gatsby v5. Any updates on fixes?

njosefbeck commented 1 year ago

Hello! I no longer have time to maintain this package, so if someone wants to fork, create a fix, and submit a PR I can take a look and get it deployed. Thanks!

brianfeister commented 1 year ago

@airjoshb @jansengunderson open to helping own this, but question for @njosefbeck would you be willing to give other folks access / ownership so they can publish to npm without having to repeat that infrastructure setup work and keep the same npm package name?

I bumped into this library being unmaintained via need for newer stripe sdk version: https://github.com/njosefbeck/gatsby-source-stripe/issues/75