Configuration Resolver
Configuration
File Name: configuration.js
File Path: enatega-multivendor-api/graphql/resolvers/configuration.js
This Resolver is used for saving configurations mainly used by web dashboard. It contains getting configuration saving order configuration, saving email configuration, saving MongoDb configuration, Uploading token, saving Paypal configuration, saving stripe configuration and saving delivery configuration.
configuration
GraphQL Type: Query
Input Type or Parameters: NULL
Description: Gets all the existing configuration.
Response Input Type or Response: Configuration!
saveOrderConfiguration
GraphQL Type: Query
Input Type or Parameters OrderConfigurationInput!
Description: Sets the prefix for order id.
Response Input Type or Response: Configuration!
saveEmailConfiguration
GraphQL Type: Mutation
Input Type or Parameters: EmailConfigurationInput!
Description: Configuration is made for email input enabled_email true or false is for use case if unnecessary sending emails are not required mainly in test environment.
Response Input Type or Response: Configuration!
saveMongoConfiguration
GraphQL Type: Mutation
Input Type or Parameters: MongoConfigurationInput!
Description: Saves MonoDb connection string url.
Response Input Type or Response: Configuration!
uploadToken
GraphQL Type: Mutation
Input Type or Parameters: String!
Description: Saves the pushToken String for configuring push notifications.
Response Input Type or Response: Configuration!
savePaypalConfiguration
GraphQL Type: Mutation
Input Type or Parameters: PaypalConfigurationInput!
Description: Saves Configuration for Paypal
Response Input Type or Response: Configuration!
saveStripeConfiguration
GraphQL Type: Mutation
Input Type or Parameters: StripeConfigurationInput!
Description: Saves configuration for Stripe
Response Input Type or Response: Configuration!
saveDeliveryConfiguration
GraphQL Type: Mutation
Input Type or Parameters: DeliveryConfigurationInput!
Description: Saves the charges for delivery.
Response Input Type or Response: Configuration!
Last updated