Skip to content

Instantly share code, notes, and snippets.

@CoolBeans-Dev
Created October 13, 2021 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CoolBeans-Dev/a7c5efba90329e31dbc6ce3815064b02 to your computer and use it in GitHub Desktop.
Save CoolBeans-Dev/a7c5efba90329e31dbc6ce3815064b02 to your computer and use it in GitHub Desktop.
test
{
vehiclePublication(id:1){
id
LeasePriceMatrix{
LeasePrices{
DurationInMonths
AnnualKilometers
PricePerMonth
LessKilometerDiscount
ExcessKilometerSurplus
}
DefaultPricePerMonth
DefaultDurationInMonths
DefaultAnnualKilometers
DefaultLessKilometerDiscount
DefaultExcessKilometerSurplus
}
StockEntries{
Identifier
Quantity
color{
Name
PrimaryColorValue
SecondaryColorValue
}
Images{
color{
Name
PrimaryColorValue
SecondaryColorValue
}
Source{
ext
name
alternativeText
id
formats
}
}
}
Vehicle{
Horsepower
Kilowatts
NumberOfDoors
NumberOfSeats
ModelYear
WeightInKilos
Options{
Name
OverrideName
}
BodyType{
Name
}
FuelType{
Name
}
TransmissionType{
Name
}
Type{
Name
Images{
color{
Name
PrimaryColorValue
SecondaryColorValue
}
Source{
ext
name
alternativeText
id
formats
}
}
model{
Name
make{
Name
MakeDescription {
Title
Description
LinkText
MakeDescriptionSlidebar {
Title
RichDescription
ButtonText
ButtonLink
}
}
}
}
}
}
VehiclePublicationId
VehiclePublicationType
VehicleState{
KilometersDrivenMin
KilometersDrivenMax
}
PromotionalLabel
Slug
}
}
@RaghavendraVenkat
Copy link

{
"error": {
"errors": [
{
"message": "Cannot query field "Title" on type "ComponentProductDetailMakeDescriptionSlidebar". Did you mean "Ttile"?",
"locations": [
{
"line": 86,
"column": 17
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED",
"exception": {
"stacktrace": [
"GraphQLError: Cannot query field "Title" on type "ComponentProductDetailMakeDescriptionSlidebar". Did you mean "Ttile"?",
" at Object.Field (D:\Project\Ver7.0\b2c-portal-cms\node_modules\graphql\validation\rules\FieldsOnCorrectTypeRule.js:48:31)",
" at Object.enter (D:\Project\Ver7.0\b2c-portal-cms\node_modules\graphql\language\visitor.js:323:29)",
" at Object.enter (D:\Project\Ver7.0\b2c-portal-cms\node_modules\graphql\utilities\TypeInfo.js:370:25)",
" at visit (D:\Project\Ver7.0\b2c-portal-cms\node_modules\graphql\language\visitor.js:243:26)",
" at Object.validate (D:\Project\Ver7.0\b2c-portal-cms\node_modules\graphql\validation\validate.js:69:24)",
" at validate (D:\Project\Ver7.0\b2c-portal-cms\node_modules\apollo-server-core\dist\requestPipeline.js:233:34)",
" at Object. (D:\Project\Ver7.0\b2c-portal-cms\node_modules\apollo-server-core\dist\requestPipeline.js:119:42)",
" at Generator.next ()",
" at fulfilled (D:\Project\Ver7.0\b2c-portal-cms\node_modules\apollo-server-core\dist\requestPipeline.js:5:58)",
" at runMicrotasks ()",
" at processTicksAndRejections (internal/process/task_queues.js:95:5)"
]
}
}
}
]
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment