http://localhost:8000/auth/registration/
http://localhost:8000/auth/login/
http://localhost:8000/auth/password/change/
http://localhost:8000/auth/password/reset/
http://localhost:8000/auth/password/reset/confirm/
http://localhost:8000/auth/user/
http://localhost:8000/auth/logout/
mutation{
verifyToken(token: "Your_Token")
{
payload
}
}
url:
http://localhost:8000/graphql
query{
homePageContent{
id
siteLogo
siteVideo
}
}
query{
workFlow{
id
title
description
icon
}
}
query{
aboutUs{
id
title
content
image
createdAt
updatedAt
}
}
query{
privacyPolicy{
id
title
content
createdAt
updatedAt
}
}
query{
termsAndConditions{
id
title
content
createdAt
updatedAt
}
}
query{
reportTypes{
id
name
}
bugReports{
id
name
reason
reportType{
id
name
}
createdAt
}
}
mutation{
createReportType(input:{
name: "Debug Error"
}){
reportType{
id
name
}
}
}
mutation{
updateReportType(id:3,input:{name:"data not found"}){
reportType{
id
}
}
}
mutation{
deleteReportType(id:3){
success
}
}
query{
bugReports{
id
name
title
reason
reportType{
id
name
}
createdAt
}
}
mutation{
createReport(input:{
title: "Bug1"
name: "No jani"
reason:"erorr"
reportType: 2
}){
report{
id
title
name
reason
reportType{
id
name
}
}
}
}
mutation{
updateReport(id:2,input:{
title:"Report Update"
name:"Foysal"
reason:"Site Error"
reportType:1
}){
report{
id
title
name
reason
reportType{
id
name
}
}
}
}
mutation{
deleteReport(id:2){
success
}
}
query{
countries{
id
name
}
}
query{
languages{
id
name
code
}
currencies{
id
name
code
}
}
query{
nominationTypes{
id
name
}
}
mutation{
createNominationType(input:{
name: "New Nomination Types"
}){
nominationType{
id
name
}
}
}
mutation{
updateNominationType(id:16, input:{
name: "update Nomination Types"
})
{
success
}
}
mutation{
deleteNominationType(id:1){
success
}
}
query{
nominations{
id
name
nominationType{
id
name
}
reason
}
}
mutation{
createNomination(input:{
name:"new nomination"
nominationType:1
reason:"shop related"
})
{
nomination{
id
name
reason
nominationType{
id
name
}
}
success
}
}
mutation{
updateNomination(id:1, input:{
name:"update nomination"
nominationType:1
reason:"buy bike"
})
{
nomination{
id
name
}
success
}
}
mutation{
deleteNomination(id:1){
success
}
}
query{
addressTypes{
id
name
}
}
mutation{
createAddressType(input:{name:"Shipping"}) {
addressType{
id
name
}
}
}
mutation{
updateAddressType(id:12,input:{name:"Billing"}){
addressType{
id
name
}
success
}
}
mutation{
deleteAddressType(id:12){
success
}
}
query{
productTypes{
id
name
}
}
mutation{
createProductType(input:{
name:"Bikes"
}){
productType{
id
name
}
success
}
}
mutation{
updateProductType(id:1,input:{
name:"car"
}){
productType{
id
name
}
success
}
}
mutation{
deleteProductType(id:4){
success
}
}
query{
productRateTypes{
id
name
}
}
mutation{
createProductRateType(input:{name:"Box"}){
productRateType{
id
name
}
}
}
mutation{
updateProductRateType(id:3,input:{name:"Cartons"}){
productRateType{
id
name
}
success
}
}
mutation{
deleteProductRateType(id:3)
{
success
}
}
query{
contactTypes{
id
name
}
}
mutation{
createContactType(input:{name:"Individual"}){
contactType{
id
name
}
success
}
}
mutation{
updateContactType(id:3,input:{name:"Employee"}){
contactType{
id
name
}
success
}
}
mutation{
deleteContactType(id:3){
success
}
}
query{
contacts{
id
name
rentalBooking
email
contactType{
id
name
}
}
}
mutation{
createContact(input:{
name:"new contact"
email: "[email protected]"
contactType:1
rentalBooking:"shop1"
})
{
success
contact{
id
name
email
}
}
}
mutation{
updateContact(id:1,input:{
name:"Majedul Islam"
email:"[email protected]"
rentalBooking:"shop101"
contactType:1
}){
success
contact{
id
name
email
rentalBooking
contactType{
name
}
}
}
}
mutation{
deleteContact(id:1)
{
success
}
}
query{
shops{
edges {
node {
id
name
street
city
state
zipCode
areaCode
country
phone
website
email
description
shopImage
shopCover
openingTime
closingTime
createdAt
owner {
id
name
email
}
productSet {
edges {
node {
id
model
brand
shop {
id
name
}
productType {
id
name
}
rating
totalReviews
stock
description
isAvailable
createdAt
}
}
}
pickuplocationSet{
edges{
node{
id
country
state
street
city
areaCode
zipCode
latitude
longitude
}
}
}
}
}
}
}
mutation{
createShop(input:{
name:"New Shop"
legalEntity:"Shop Legal Entity"
userId:2
street: "Dhaka"
city: "Dhaka City"
state: "Dhaka Uttara"
zipCode :"1230"
areaCode: "1230"
country: "Bangladesh"
latitude:"45.454214"
longitude: "82.544565"
phone: "+85452825"
website: "www.web.com"
email: "[email protected]"
description: "shop description"
shopImage:Upload
shopCover:Upload
openingTime:Time
closingTime:Time
pickupLocations:[
{country:"Bangladesh", city:"Dhaka", state:"Uttara", street:"Uttara",zipCode:"4521", areaCode:"6243",
latitude:"42.545545", longitude: "86.545223"},
{country:"Bangladesh", city:"CTG", state:"Pahartali", street:"Ferozshah",zipCode:"4521", areaCode:"6243",
latitude:"49.545545", longitude: "86.545223"}
]
})
{
success
}
}
mutation{
updateShop(input:{
id:2
name:"New Shop"
legalEntity:"Shop Legal Entity"
street: "Dhaka"
city: "Dhaka City"
state: "Dhaka Uttara"
zipCode :"1230"
areaCode: "1230"
country: "bangladesh"
latitude:"45.454214"
longitude: "82.544565"
phone: "+85452825"
website: "www.web.com"
email: "[email protected]"
description: "shop description"
shopImage:Upload
shopCover:Upload
openingTime:Time
closingTime:Time
pickupLocations:[
{id:15,country:"bangladesh", city:"Dhaka", state:"Uttara", street:"Uttara",zipCode:"4521", areaCode:"6243",
latitude:"42.545545", longitude: "86.545223"},
{id:16, country:"Bangladesh", city:"CTG", state:"Pahartali", street:"Ferozshah",zipCode:"4521", areaCode:"6243",
latitude:"49.545545", longitude: "86.545223"}
]
})
{
success
}
}
mutation{
deleteShop(id:11){
success
}
}
query{
shops(ownerId: "1") {
edges {
node {
id
name
street
city
state
zipCode
areaCode
country
phone
website
email
description
shopCover
openingTime
closingTime
rating
totalReviews
createdAt
owner {
id
name
email
}
createdAt
productSet {
edges {
node {
id
model
brand
shop {
id
name
}
productType {
id
name
}
image
size{
id
productSize
}
productrateSet{
id
rate
rateType{
id
name
}
}
rating
totalReviews
stock
description
isAvailable
createdAt
}
}
}
}
}
}
}
mutation{
createShopVerification(input:{
shopId:2
ownerImage: Upload
idFrontImage: Upload
idBackImage: Upload
}){
success
shopVerification{
id
shop{
id
isVerified
}
status
ownerImage
idFrontImage
idBackImage
}
}
}
mutation{
updateShopVerification(input:{
id:3
ownerImage: Upload
idFrontImage: Upload
idBackImage: Upload
})
{
success
shopVerification{
id
shop{
id
name
}
status
idFrontImage
status
idBackImage
}
}
}
query{
products {
edges {
node {
id
model
brand
shop {
id
name
}
productType {
id
name
}
rating
totalReviews
stock
description
isAvailable
stock
size{
id
productSize
}
condition
createdAt
productrateSet {
id
rate
}
image
productoptionSet {
id
option
}
productreviewSet {
id
review
rating
user {
id
username
userImage
}
}
}
}
}
}
mutation{
createProduct(input:{
brand:"product brand100"
model:"pdoruct model20"
productType:1
shop:2
description:"shop details"
stock:500
size:1
condition:"product conditation"
image: Upload
prices:[{rateType:1, rate:100,},{rateType:1, rate:100,}]
})
{
success
product{
id
brand
model
size{
id
productSize
}
productType{
id
name
}
shop{
id
}
description
stock
productrateSet{
id
product{
id
}
rateType{
id
}
rate
}
condition
}
}
}
mutation{
updateProduct(id:24,input:{
brand:"productupdated"
model:"pdoruct model20"
productType:1
description:"shop details"
stock:500
size:2
condition:"product conditation"
prices:[{rateType:2, rate:40,},{rateType:4, rate:800,}]
image:Upload
})
{
success
product{
id
brand
model
description
stock
condition
size{
id
productSize
}
productType{
id
name
}
shop{
id
}
productrateSet{
id
product{
id
}
rateType{
id
}
rate
}
image
}
}
}
mutation{
deleteProduct(id:2){
success
}
}
query{
getProductsByPriceRange(min: 50, max: 100) {
id
model
brand
shop {
id
name
}
productType {
id
name
}
image
size{
id
productSize
}
productrateSet {
id
rate
rateType {
id
name
}
}
rating
totalReviews
stock
description
isAvailable
createdAt
}
}
query{
products(
model: ""
brand: ""
shopLocation: ""
productTypeId: "1"
productRateTypeId:"1"
date : "2023-03-20"
riders: 5
latMin: "45.45454"
latMax: "60.56655"
lonMin: "50.45454"
lonMax: "60.45421"
) {
edges {
node {
id
model
brand
shop {
id
name
state
street
}
productType {
id
name
}
size{
id
productSize
}
productrateSet {
id
rate
rateType {
id
name
}
}
image
rating
totalReviews
stock
description
isAvailable
createdAt
}
}
}
}
query{
productReviews{
id
product{
id
brand
model
image
}
review
rating
user{
id
username
userImage
}
}
}
query{
getProductReviewsByProductId(id:1){
id
review
rating
user{
id
username
userImage
}
product{
id
brand
model
image
}
}
}
query{
getProductReviewsByShopId(id: 1) {
review
rating
product {
id
brand
model
image
}
}
}
mutation{
createProductReview(input:{
user:1
product:1
review:"good product"
rating:5
})
{
success
productReview{
id
product{
id
model
brand
createdAt
rating
}
}
productReview{
id
rating
review
}
}
}
mutation{
updateProductReview(id:37,input:{
user:1
product:1
review:"good"
rating:5
})
{
success
productReview{
id
product{
id
model
brand
createdAt
rating
}
}
productReview{
id
rating
review
user{
id
username
}
}
}
}
mutation{
deleteProductReview(id:1){
success
}
}
query{
productDemurrages{
id
product{
id
model
}
description
image
createdAt
}
}
query{
getProductDemurragesByProductId(id:1){
id
description
image
product{
id
model
shop{
id
name
}
}
}
}
mutation{
createProductDamage(input:{
product:1
description:"damage product"
user:2
}){
productDamage{
id
description
product{
id
brand
}
}
success
}
}
mutation{
updateProductDamage(id:2,input:{
product:1
description:"Update damage example"
user:2
}){
productDamage{
id
description
product{
id
brand
}
}
success
}
}
mutation{
deleteProductDamage(id:1){
success
}
}
mutation {
addToCart(userId: 2, productId: 1, quantity: 10){
cart {
id
user {
id
username
}
cartitemSet {
edges {
node {
id
price
quantity
product {
id
brand
}
}
}
}
}
}
}
mutation {
removeFromCart(userId: 2, productId: 1, quantity: 1) {
cart {
id
user {
id
username
}
cartitemSet {
edges {
node {
id
price
quantity
product {
id
brand
}
}
}
}
}
}
}
query{
cartItems{
edges{
node
{
id
cart{
id
user{
id
username
}
}
price
product{
id
brand
}
quantity
}
}
}
}
query{
carts(userId:"1"){
edges{
node{
id
cartitemSet{
edges{
node{
id
quantity
price
product{
id
model
brand
stock
}
}
}
}
}
}
}
}
query{
latestOrder{
id
quantity
price
product{
id
model
brand
shop {
id
name
state
street
}
productType {
id
name
}
image
size{
id
productSize
}
productrateSet {
id
rate
rateType {
id
name
}
}
rating
totalReviews
stock
description
isAvailable
createdAt
}
}
}
query{
orderByUserId(userId:4){
id
user{
id
username
}
paymentMethod
status
isPaid
isDelivered
totalPrice
paidAt
deliveredAt
returnedAt
orderitemSet{
product{
id
model
brand
shop {
id
name
state
street
}
productType {
id
name
}
image
size{
productSize
}
productrateSet {
id
rate
rateType {
id
name
}
}
rating
totalReviews
stock
description
isAvailable
createdAt
}
}
}
}
mutation{
updateOrder(id:14, input:{
paymentMethod:"bank"
isCancelled: false
refundRequested: true
}){
order{
id
paymentMethod
status
orderitemSet{
id
product{
id
shop{
id
owner{
id
}
}
}
quantity
}
}
}
}
query{
orderItemByOrderId(orderId: 15) {
id
price
quantity
order {
id
}
product {
id
model
brand
shop {
id
name
state
street
}
productType {
id
name
}
image
size {
productSize
}
productrateSet {
id
rate
rateType {
id
name
}
}
rating
totalReviews
stock
description
isAvailable
createdAt
}
}
}
query{
refunds{
id
order{
id
status
orderitemSet{
id
product{
id
brand
productType{
id
}
}
}
}
reason
status
createdAt
}
}
mutation{
createRefund(input:{
orderId:15
reason:"refund request"
})
{
success
refund{
id
reason
status
}
}
}
mutation{
deleteRefund(id:3){
success
}
}
query{
refundByUserId(userId:1){
id
order{
id
user{
id
}
status
orderitemSet{
id
product{
id
brand
productType{
id
}
}
}
}
reason
status
createdAt
}
}