Configuration Resolver
Configuration
File Name: configuration.js
File Path: lyoneat-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!
Name
Type
_id
String
order_id_prefix
String
push_token
String
mongodb_url
String
String
password
String
enable_email
Boolean
client_id
String
client_secret
String
sandbox
Boolean
publishable_key
String
secret_key
String
delivery_charges
Float
saveOrderConfiguration
GraphQL Type: Query
Input Type or Parameters OrderConfigurationInput!
Name
Type
Required
order_id_prefix
String
true
Description: Sets the prefix for order id.
Response Input Type or Response: Configuration!
Name
Type
_id
String
order_id_prefix
String
push_token
String
mongodb_url
String
String
password
String
enable_email
Boolean
client_id
String
client_secret
String
sandbox
Boolean
publishable_key
String
secret_key
String
delivery_charges
Float
saveEmailConfiguration
GraphQL Type: Mutation
Input Type or Parameters: EmailConfigurationInput!
Name
Type
Required
String
true
password
String
true
enable_email
String
true
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!
Name
Type
_id
String
order_id_prefix
String
push_token
String
mongodb_url
String
String
password
String
enable_email
Boolean
client_id
String
client_secret
String
sandbox
Boolean
publishable_key
String
secret_key
String
delivery_charges
Float
saveMongoConfiguration
GraphQL Type: Mutation
Input Type or Parameters: MongoConfigurationInput!
Name
Type
Required
mongodb_url
String
true
Description: Saves MonoDb connection string url.
Response Input Type or Response: Configuration!
Name
Type
_id
String
order_id_prefix
String
push_token
String
mongodb_url
String
String
password
String
enable_email
Boolean
client_id
String
client_secret
String
sandbox
Boolean
publishable_key
String
secret_key
String
delivery_charges
Float
uploadToken
GraphQL Type: Mutation
Input Type or Parameters: String!
Name
Type
Required
pushToken
String
true
Description: Saves the pushToken String for configuring push notifications.
Response Input Type or Response: Configuration!
Name
Type
_id
String
order_id_prefix
String
push_token
String
mongodb_url
String
String
password
String
enable_email
Boolean
client_id
String
client_secret
String
sandbox
Boolean
publishable_key
String
secret_key
String
delivery_charges
Float
savePaypalConfiguration
GraphQL Type: Mutation
Input Type or Parameters: PaypalConfigurationInput!
Name
Type
Required
client_id
String
true
client_secret
String
true
sandbox
Boolean
true
Description: Saves Configuration for Paypal
Response Input Type or Response: Configuration!
Name
Type
_id
String
order_id_prefix
String
push_token
String
mongodb_url
String
String
password
String
enable_email
Boolean
client_id
String
client_secret
String
sandbox
Boolean
publishable_key
String
secret_key
String
delivery_charges
Float
saveStripeConfiguration
GraphQL Type: Mutation
Input Type or Parameters: StripeConfigurationInput!
Name
Type
Required
publishable_key
String
true
secret_key
String
true
Description: Saves configuration for Stripe
Response Input Type or Response: Configuration!
Name
Type
_id
String
order_id_prefix
String
push_token
String
mongodb_url
String
String
password
String
enable_email
Boolean
client_id
String
client_secret
String
sandbox
Boolean
publishable_key
String
secret_key
String
delivery_charges
Float
saveDeliveryConfiguration
GraphQL Type: Mutation
Input Type or Parameters: DeliveryConfigurationInput!
Name
Type
Required
delivery_charges
Float
true
Description: Saves the charges for delivery.
Response Input Type or Response: Configuration!
Name
Type
_id
String
order_id_prefix
String
push_token
String
mongodb_url
String
String
password
String
enable_email
Boolean
client_id
String
client_secret
String
sandbox
Boolean
publishable_key
String
secret_key
String
delivery_charges
Float
Last updated
Was this helpful?