We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At the moment the exporting of services to use in rw app feels a bit hacky.
inside plugin redwoodjs-stripe/src/api/services/index.js
redwoodjs-stripe/src/api/services/index.js
import { checkout, createStripeCheckoutSession } from './checkouts/checkouts' import * as stripeItems from './stripeItems/stripeItems' import { stripeCustomerSearch, retrieveStripeCustomer, createStripeCustomer, searchLatestStripeCustomer} from './customers/customers' import * as customerPortal from './customerPortal/customerPortal' // shape services object export const stripeServices = { checkouts_checkouts: { checkout, createStripeCheckoutSession }, customers_customers: { stripeCustomerSearch, retrieveStripeCustomer, createStripeCustomer, searchLatestStripeCustomer }, customerPortal_customerPortal: customerPortal, stripeItems_stripeItems: stripeItems }
in an app
rw-app/src/api/functions/graphql.js
import { stripeSchemas, stripeServices } from 'redwoodjs-stripe/api' ... export const handler = createGraphQLHandler({ loggerConfig: { logger, options: {} }, directives, sdls: { ...sdls, ...stripeSchemas }, services: { ...services, ...stripeServices }, onException: () => { // Disconnect from your database with an unhandled exception. db.$disconnect() }, })
Surely theres a better way... makeSchemas? better package setup? idk
makeSchemas
The text was updated successfully, but these errors were encountered:
Seems to be an issue with parcel a little bit re exporting from api side of plugin
Sorry, something went wrong.
No branches or pull requests
At the moment the exporting of services to use in rw app feels a bit hacky.
inside plugin
redwoodjs-stripe/src/api/services/index.js
in an app
rw-app/src/api/functions/graphql.js
Surely theres a better way...
makeSchemas
? better package setup? idkThe text was updated successfully, but these errors were encountered: